projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1ea93f2
)
Squashed compiler wng from MSVC6.
author
Tim Peters
<tim.peters@gmail.com>
Mon, 30 Dec 2002 22:44:03 +0000
(22:44 +0000)
committer
Tim Peters
<tim.peters@gmail.com>
Mon, 30 Dec 2002 22:44:03 +0000
(22:44 +0000)
Modules/zipimport.c
patch
|
blob
|
history
diff --git
a/Modules/zipimport.c
b/Modules/zipimport.c
index ec5a529e3e22c924fb5bdb563937f97ba069e223..863ce42069f5be8ad8303ecc81372116682990af 100644
(file)
--- a/
Modules/zipimport.c
+++ b/
Modules/zipimport.c
@@
-412,7
+412,7
@@
zipimporter_get_data(PyObject *obj, PyObject *args)
path = buf;
#endif
len = PyString_Size(self->archive);
- if (len < strlen(path) &&
+ if (
(size_t)
len < strlen(path) &&
strncmp(path, PyString_AsString(self->archive), len) == 0 &&
path[len] == SEP) {
path = path + len + 1;