From 691d2adeefe8673ca5d91988e95e454460cbc497 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Thu, 11 Dec 1997 02:32:43 +0000 Subject: Allocate one byte extra in some cases. --- PC/getpathp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v0.12