From e764ff7be9949c91865aff72844357e76ae6dd78 Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Tue, 16 Nov 2010 16:45:36 +0100 Subject: [PATCH] Fix variable length array declaration. --- src/process.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/process.c b/src/process.c index b3054561..0007943a 100644 --- a/src/process.c +++ b/src/process.c @@ -356,7 +356,7 @@ bool detach(void) { bool execute_script(const char *name, char **envp) { #ifdef HAVE_SYSTEM int status, len; - char *scriptname, *p; + char *scriptname; int i; #ifndef HAVE_MINGW @@ -397,7 +397,7 @@ bool execute_script(const char *name, char **envp) { for(i = 0; envp[i]; i++) { char *e = strchr(envp[i], '='); if(e) { - p[e - envp[i] + 1]; + char p[e - envp[i] + 1]; strncpy(p, envp[i], e - envp[i]); p[e - envp[i]] = '\0'; putenv(p); -- 2.39.5