Allocate one byte extra in some cases.

This commit is contained in:
Guido van Rossum 1997-12-11 02:32:43 +00:00
parent 5ac00ac140
commit 691d2adeef
1 changed files with 1 additions and 1 deletions

View 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;