aboutsummaryrefslogtreecommitdiffstats
path: root/pop3.c
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2005-07-31 00:42:13 +0000
committerMatthias Andree <matthias.andree@gmx.de>2005-07-31 00:42:13 +0000
commit09f220e2fec10275e34f45731d625ef2f2d9755e (patch)
treef0fd6492af2edb31016a7bce0c459f0dd18543b8 /pop3.c
parentf510914d839165691dd6ba8dc627699899e07118 (diff)
downloadfetchmail-09f220e2fec10275e34f45731d625ef2f2d9755e.tar.gz
fetchmail-09f220e2fec10275e34f45731d625ef2f2d9755e.tar.bz2
fetchmail-09f220e2fec10275e34f45731d625ef2f2d9755e.zip
Kill alloca().
svn path=/trunk/; revision=4199
Diffstat (limited to 'pop3.c')
-rw-r--r--pop3.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pop3.c b/pop3.c
index b5d1a965..1c0eaaf9 100644
--- a/pop3.c
+++ b/pop3.c
@@ -561,11 +561,11 @@ static int pop3_getauth(int sock, struct query *ctl, char *greeting)
*++end = '\0';
/* copy timestamp and password into digestion buffer */
- xalloca(msg, char *, (end-start+1) + strlen(ctl->password) + 1);
+ msg = xmalloc((end-start+1) + strlen(ctl->password) + 1);
strcpy(msg,start);
strcat(msg,ctl->password);
-
strcpy(ctl->digest, MD5Digest((unsigned char *)msg));
+ free(msg);
ok = gen_transact(sock, "APOP %s %s", ctl->remotename, ctl->digest);
break;