From 42eddaeaf36d467074f329599193030c3beba8ba Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Tue, 20 Oct 1998 04:33:28 +0000 Subject: Make alloca safe. svn path=/trunk/; revision=2115 --- pop3.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'pop3.c') 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 -#if defined(HAVE_ALLOCA_H) -#include -#else -#ifdef _AIX - #pragma alloca -#endif -#endif #include #include #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); -- cgit v1.2.3