diff options
Diffstat (limited to 'libiberty/putenv.c')
-rw-r--r-- | libiberty/putenv.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libiberty/putenv.c b/libiberty/putenv.c index 1860676..9d56922 100644 --- a/libiberty/putenv.c +++ b/libiberty/putenv.c @@ -24,6 +24,8 @@ # include <config.h> #endif +#include "ansidecl.h" + #if HAVE_STDLIB_H # include <stdlib.h> #endif @@ -55,7 +57,7 @@ putenv (string) if (name_end) { - char *name = alloca (name_end - string + 1); + char *name = (char *) alloca (name_end - string + 1); memcpy (name, string, name_end - string); name[name_end - string] = '\0'; return setenv (name, name_end + 1, 1); |