aboutsummaryrefslogtreecommitdiffstats
path: root/pop3.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1998-10-20 04:33:28 +0000
committerEric S. Raymond <esr@thyrsus.com>1998-10-20 04:33:28 +0000
commit42eddaeaf36d467074f329599193030c3beba8ba (patch)
tree3f271d26a6eb861fefd0a384f3e11b8e965833aa /pop3.c
parent3299270c28441b9d01a24da727eeaa6553c4d7aa (diff)
downloadfetchmail-42eddaeaf36d467074f329599193030c3beba8ba.tar.gz
fetchmail-42eddaeaf36d467074f329599193030c3beba8ba.tar.bz2
fetchmail-42eddaeaf36d467074f329599193030c3beba8ba.zip
Make alloca safe.
svn path=/trunk/; revision=2115
Diffstat (limited to 'pop3.c')
-rw-r--r--pop3.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/pop3.c b/pop3.c
index 7238e345..11c1f7a0 100644
--- a/pop3.c
+++ b/pop3.c
@@ -7,13 +7,6 @@
#include "config.h"
#ifdef POP3_ENABLE
#include <stdio.h>
-#if defined(HAVE_ALLOCA_H)
-#include <alloca.h>
-#else
-#ifdef _AIX
- #pragma alloca
-#endif
-#endif
#include <string.h>
#include <ctype.h>
#if defined(HAVE_UNISTD_H)
@@ -225,7 +218,7 @@ int pop3_getauth(int sock, struct query *ctl, char *greeting)
*++end = '\0';
/* copy timestamp and password into digestion buffer */
- msg = (char *)alloca((end-start+1) + strlen(ctl->password) + 1);
+ xalloca(msg, char *, (end-start+1) + strlen(ctl->password) + 1);
strcpy(msg,start);
strcat(msg,ctl->password);