From 09f220e2fec10275e34f45731d625ef2f2d9755e Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Sun, 31 Jul 2005 00:42:13 +0000 Subject: Kill alloca(). svn path=/trunk/; revision=4199 --- pop3.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pop3.c') 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; -- cgit v1.2.3