diff --git a/test/test-spawn.c b/test/test-spawn.c index d3c0693b..9b003002 100644 --- a/test/test-spawn.c +++ b/test/test-spawn.c @@ -1015,7 +1015,7 @@ TEST_IMPL(spawn_with_an_odd_path) { char *path = getenv("PATH"); ASSERT(path != NULL); snprintf(newpath, 2048, ";.;%s", path); - SetEnvironmentVariable("PATH", path); + SetEnvironmentVariable("PATH", newpath); init_process_options("", exit_cb); options.file = options.args[0] = "program-that-had-better-not-exist";