]> granicus.if.org Git - python/commitdiff
Pass unquoted string to stat.
authorMartin v. Löwis <martin@v.loewis.de>
Thu, 19 Jan 2006 16:17:31 +0000 (16:17 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Thu, 19 Jan 2006 16:17:31 +0000 (16:17 +0000)
PCbuild/make_buildinfo.c

index 798967a232f51cc1b5c739bc6a90ac2e991bc353..0b28ade04d667ec3615e6a30dfd0ed93c1a27a7e 100644 (file)
@@ -37,11 +37,11 @@ int make_buildinfo2()
            type != REG_SZ)\r
                /* Registry corrupted */\r
                return 0;\r
-       strcat(command, "bin\\subwcrev.exe\"");\r
-       if (_stat(command, &st) < 0)\r
+       strcat(command, "bin\\subwcrev.exe");\r
+       if (_stat(command+1, &st) < 0)\r
                /* subwcrev.exe not part of the release */\r
                return 0;\r
-       strcat(command, " .. ..\\Modules\\getbuildinfo.c getbuildinfo2.c");\r
+       strcat(command, "\" .. ..\\Modules\\getbuildinfo.c getbuildinfo2.c");\r
        puts(command); fflush(stdout);\r
        if (system(command) < 0)\r
                return 0;\r