Show
Ignore:
Timestamp:
2000-08-04 01:06:22 (8 years ago)
Author:
Thomas Roessler <roessler@…>
Branch:
HEAD
Message:

SASL patch from Brendan Cully.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • account.c

    r2037 r2046  
    5757int mutt_account_getuser (ACCOUNT* account) 
    5858{ 
     59  char prompt[SHORT_STRING]; 
     60 
    5961  /* already set */ 
    6062  if (account->flags & M_ACCT_USER) 
     
    7173  else 
    7274  { 
     75    snprintf (prompt, sizeof (prompt), _("Username at %s: "), account->host); 
    7376    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)) 
    7678      return -1; 
    7779  } 
     
    8587int mutt_account_getpass (ACCOUNT* account) 
    8688{ 
     89  char prompt[SHORT_STRING]; 
     90 
    8791  if (account->flags & M_ACCT_PASS) 
    8892    return 0; 
     
    97101  else 
    98102  { 
     103    snprintf (prompt, sizeof (prompt), _("Password for %s@%s: "), 
     104      account->user, account->host); 
    99105    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)) 
    102107      return -1; 
    103108  }