mirror of
https://github.com/python/cpython.git
synced 2025-11-17 01:25:57 +00:00
Allocate one byte extra in some cases.
This commit is contained in:
parent
5ac00ac140
commit
691d2adeef
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue