diff options
author | Tim Peters <tim.peters@gmail.com> | 2002-12-30 22:44:03 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2002-12-30 22:44:03 (GMT) |
commit | f271c272a2a98081b787dcd40a973b641fe14ca4 (patch) | |
tree | d63820bc9d30391bdf0a47438ed9f20a107b9221 /Modules/zipimport.c | |
parent | 1ea93f2b1d0a165b5f9306c7cb351c595712199e (diff) | |
download | cpython-f271c272a2a98081b787dcd40a973b641fe14ca4.zip cpython-f271c272a2a98081b787dcd40a973b641fe14ca4.tar.gz cpython-f271c272a2a98081b787dcd40a973b641fe14ca4.tar.bz2 |
Squashed compiler wng from MSVC6.
Diffstat (limited to 'Modules/zipimport.c')
-rw-r--r-- | Modules/zipimport.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/zipimport.c b/Modules/zipimport.c index ec5a529..863ce42 100644 --- 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; |