]> granicus.if.org Git - python/commitdiff
Allocate one byte extra in some cases.
authorGuido van Rossum <guido@python.org>
Thu, 11 Dec 1997 02:32:43 +0000 (02:32 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 11 Dec 1997 02:32:43 +0000 (02:32 +0000)
PC/getpathp.c

index d73cd7385e022bf813325ca0cb01cc4824fcaff8..e769a93517edd087b4c051ca1daa6f3249bc602a 100644 (file)
@@ -372,7 +372,7 @@ calculate_path()
        }
        else
                bufsz = 0;
-       bufsz += strlen(PYTHONPATH);
+       bufsz += strlen(PYTHONPATH) + 1;
        if (envpath != NULL)
                bufsz += strlen(envpath) + 1;
        bufsz += strlen(argv0_path) + 1;