Changeset 2046:a5eb2011264c for account.c
Legend:
- Unmodified
- Added
- Removed
-
account.c
r2037 r2046 57 57 int mutt_account_getuser (ACCOUNT* account) 58 58 { 59 char prompt[SHORT_STRING]; 60 59 61 /* already set */ 60 62 if (account->flags & M_ACCT_USER) … … 71 73 else 72 74 { 75 snprintf (prompt, sizeof (prompt), _("Username at %s: "), account->host); 73 76 strfcpy (account->user, NONULL (Username), sizeof (account->user)); 74 if (mutt_get_field (_("Username: "), account->user, 75 sizeof (account->user), 0)) 77 if (mutt_get_field (prompt, account->user, sizeof (account->user), 0)) 76 78 return -1; 77 79 } … … 85 87 int mutt_account_getpass (ACCOUNT* account) 86 88 { 89 char prompt[SHORT_STRING]; 90 87 91 if (account->flags & M_ACCT_PASS) 88 92 return 0; … … 97 101 else 98 102 { 103 snprintf (prompt, sizeof (prompt), _("Password for %s@%s: "), 104 account->user, account->host); 99 105 account->pass[0] = '\0'; 100 if (mutt_get_field (_("Password: "), account->pass, 101 sizeof (account->pass), M_PASS)) 106 if (mutt_get_field (prompt, account->pass, sizeof (account->pass), M_PASS)) 102 107 return -1; 103 108 }
