Make sure zip_path is null-terminated, since it's on the stack
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 @@
         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);