mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +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
|
||||
bufsz = 0;
|
||||
bufsz += strlen(PYTHONPATH);
|
||||
bufsz += strlen(PYTHONPATH) + 1;
|
||||
if (envpath != NULL)
|
||||
bufsz += strlen(envpath) + 1;
|
||||
bufsz += strlen(argv0_path) + 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue