Commit b70557f1 authored by Neal Norwitz's avatar Neal Norwitz

Make sure zip_path is null-terminated, since it's on the stack

parent 5c37a771
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment