diff --git a/PC/getpathp.c b/PC/getpathp.c index d73cd7385e0..e769a93517e 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;