diff options
author | Matthias Andree <matthias.andree@gmx.de> | 2005-07-31 00:42:13 +0000 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2005-07-31 00:42:13 +0000 |
commit | 09f220e2fec10275e34f45731d625ef2f2d9755e (patch) | |
tree | f0fd6492af2edb31016a7bce0c459f0dd18543b8 /pop3.c | |
parent | f510914d839165691dd6ba8dc627699899e07118 (diff) | |
download | fetchmail-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |