Commit a0fbf62b authored by Hanspeter Portner's avatar Hanspeter Portner

fix last commit.

parent 750e3fca
......@@ -84,6 +84,14 @@ _spawn_parse_env(char *env, char *path)
args[n] = NULL;
}
args[n++] = path;
oldargs = args;
args = realloc(args, (n+1) * sizeof(char *));
if(!args)
goto fail;
oldargs = NULL;
args[n] = NULL;
return args;
fail:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment