projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5c37a77
)
Make sure zip_path is null-terminated, since it's on the stack
author
Neal Norwitz
<nnorwitz@gmail.com>
Tue, 31 Dec 2002 12:45:12 +0000
(12:45 +0000)
committer
Neal Norwitz
<nnorwitz@gmail.com>
Tue, 31 Dec 2002 12:45:12 +0000
(12:45 +0000)
Modules/getpath.c
patch
|
blob
|
history
diff --git
a/Modules/getpath.c
b/Modules/getpath.c
index 03646a541960a8b78c273d29a96767b6a21d8a65..6559b0615bcd98a647fd5ee0cc75b87d694e9f96 100644
(file)
--- 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);