diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1998-10-20 04:33:28 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1998-10-20 04:33:28 +0000 |
commit | 42eddaeaf36d467074f329599193030c3beba8ba (patch) | |
tree | 3f271d26a6eb861fefd0a384f3e11b8e965833aa /report.c | |
parent | 3299270c28441b9d01a24da727eeaa6553c4d7aa (diff) | |
download | fetchmail-42eddaeaf36d467074f329599193030c3beba8ba.tar.gz fetchmail-42eddaeaf36d467074f329599193030c3beba8ba.tar.bz2 fetchmail-42eddaeaf36d467074f329599193030c3beba8ba.zip |
Make alloca safe.
svn path=/trunk/; revision=2115
Diffstat (limited to 'report.c')
-rw-r--r-- | report.c | 11 |
1 files changed, 3 insertions, 8 deletions
@@ -31,13 +31,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #if defined(HAVE_SYSLOG) #include <syslog.h> #endif -#if defined(HAVE_ALLOCA_H) -#include <alloca.h> -#else -#ifdef _AIX - #pragma alloca -#endif -#endif #if HAVE_VPRINTF || HAVE_DOPRNT || _LIBC || HAVE_STDARG_H # if HAVE_STDARG_H @@ -159,7 +152,9 @@ error (status, errnum, message, va_alist) if (errnum > 0) { - char *msg = alloca (strlen (message) + 5); + char *msg; + + xalloca(msg, char *, strlen (message) + 5); strcpy (msg, message); strcat (msg, ": %m"); |