int mutt_sasl_interact (sasl_interact_t * interaction)
{
- char prompt[SHORT_STRING];
- char resp[SHORT_STRING];
+ char prompt[STRING];
+ char resp[STRING];
while (interaction->id != SASL_CB_LIST_END) {
snprintf (prompt, sizeof (prompt), "%s: ", interaction->prompt);
*psecret = xmalloc(sizeof(sasl_secret_t) + len);
(*psecret)->len = len;
- strcpy((char*)(*psecret)->data, account->pass);
+ memcpy((char*)(*psecret)->data, account->pass, len);
return SASL_OK;
}