mirror of https://github.com/python/cpython.git
Allocate one byte extra in some cases.
This commit is contained in:
parent
5ac00ac140
commit
691d2adeef
|
@ -372,7 +372,7 @@ calculate_path()
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
bufsz = 0;
|
bufsz = 0;
|
||||||
bufsz += strlen(PYTHONPATH);
|
bufsz += strlen(PYTHONPATH) + 1;
|
||||||
if (envpath != NULL)
|
if (envpath != NULL)
|
||||||
bufsz += strlen(envpath) + 1;
|
bufsz += strlen(envpath) + 1;
|
||||||
bufsz += strlen(argv0_path) + 1;
|
bufsz += strlen(argv0_path) + 1;
|
||||||
|
|
Loading…
Reference in New Issue