summaryrefslogtreecommitdiffstats
path: root/PC
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-12-11 02:32:43 (GMT)
committerGuido van Rossum <guido@python.org>1997-12-11 02:32:43 (GMT)
commit691d2adeefe8673ca5d91988e95e454460cbc497 (patch)
treeca7f537810f4996bf4aa68eabba9b085319ff99f /PC
parent5ac00ac1403e4d0981c5042cc76cd09ae6de2570 (diff)
downloadcpython-691d2adeefe8673ca5d91988e95e454460cbc497.zip
cpython-691d2adeefe8673ca5d91988e95e454460cbc497.tar.gz
cpython-691d2adeefe8673ca5d91988e95e454460cbc497.tar.bz2
Allocate one byte extra in some cases.
Diffstat (limited to 'PC')
-rw-r--r--PC/getpathp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/PC/getpathp.c b/PC/getpathp.c
index d73cd73..e769a93 100644
--- a/PC/getpathp.c
+++ b/PC/getpathp.c
@@ -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;