From: Tim Peters Date: Mon, 30 Dec 2002 22:44:03 +0000 (+0000) Subject: Squashed compiler wng from MSVC6. X-Git-Tag: v2.3c1~2780 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f271c272a2a98081b787dcd40a973b641fe14ca4;p=thirdparty%2FPython%2Fcpython.git Squashed compiler wng from MSVC6. --- diff --git a/Modules/zipimport.c b/Modules/zipimport.c index ec5a529e3e22..863ce42069f5 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;