diff --git a/source/bforce/bforce.c b/source/bforce/bforce.c index 38c4d1c..0f6512e 100644 --- a/source/bforce/bforce.c +++ b/source/bforce/bforce.c @@ -272,7 +272,7 @@ int main(int argc, char *argv[], char *envp[]) mainenv[i] = malloc(strlen(envp[i])+2); strcpy(mainenv[i], envp[i]); mainenv[i++] = NULL; - DEB((D_FREE, "Program ENV: %s\n", mainenv[(i-1)])); + fprintf(stderr,"BF-DEBUG: ENV: %s\n", mainenv[(i-1)]); } // parsing diff --git a/source/bforce/os_unix.c b/source/bforce/os_unix.c index b014d83..7556e7d 100644 --- a/source/bforce/os_unix.c +++ b/source/bforce/os_unix.c @@ -77,6 +77,7 @@ void exec_options_init(s_exec_options *eopt) memset(eopt, '\0', sizeof(s_exec_options)); eopt->umask = EXEC_DEFAULT_UMASK; eopt->envp[0] = NULL; + i = 0; while(mainenv[i]) { log("EXEC: Added ENV variable: %s\n", mainenv[i]); eopt->envp[i] = xmalloc(strlen(mainenv[i]) + 2);