Commit 62ffc078 authored by Martin v. Löwis's avatar Martin v. Löwis

Pass unquoted string to stat.

parent 773feaf5
......@@ -37,11 +37,11 @@ int make_buildinfo2()
type != REG_SZ)
/* Registry corrupted */
return 0;
strcat(command, "bin\\subwcrev.exe\"");
if (_stat(command, &st) < 0)
strcat(command, "bin\\subwcrev.exe");
if (_stat(command+1, &st) < 0)
/* subwcrev.exe not part of the release */
return 0;
strcat(command, " .. ..\\Modules\\getbuildinfo.c getbuildinfo2.c");
strcat(command, "\" .. ..\\Modules\\getbuildinfo.c getbuildinfo2.c");
puts(command); fflush(stdout);
if (system(command) < 0)
return 0;
......
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