diff options
-rw-r--r-- | fetchmail.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fetchmail.c b/fetchmail.c index 57b41a61..0d237213 100644 --- a/fetchmail.c +++ b/fetchmail.c @@ -478,10 +478,11 @@ int main(int argc, char **argv) const char* password_prompt = GT_("Enter password for %s@%s: "); size_t pplen = strlen(password_prompt) + strlen(ctl->remotename) + strlen(ctl->server.pollname) + 1; - xalloca(tmpbuf, char *, pplen); + tmpbuf = xmalloc(pplen); snprintf(tmpbuf, pplen, password_prompt, ctl->remotename, ctl->server.pollname); ctl->password = xstrdup((char *)fm_getpassword(tmpbuf)); + free(tmpbuf); } } } |