diff options
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/getpath.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/getpath.c b/Modules/getpath.c index 03646a5..6559b06 100644 --- a/Modules/getpath.c +++ b/Modules/getpath.c @@ -485,6 +485,7 @@ calculate_path(void) reduce(prefix); strncpy(zip_path, prefix, MAXPATHLEN); + zip_path[MAXPATHLEN] = '\0'; if (pfound > 0) { /* Use the reduced prefix returned by Py_GetPrefix() */ reduce(zip_path); reduce(zip_path); |