From f510914d839165691dd6ba8dc627699899e07118 Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Sun, 31 Jul 2005 00:41:59 +0000 Subject: Kill alloca(). svn path=/trunk/; revision=4198 --- fetchmail.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); } } } -- cgit v1.2.3