summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;