summaryrefslogtreecommitdiffstats
path: root/Modules/zipimport.c
diff options
context:
space:
mode:
authorJust van Rossum <just@letterror.com>2003-02-28 08:54:01 (GMT)
committerJust van Rossum <just@letterror.com>2003-02-28 08:54:01 (GMT)
commitf4ecc751b1c640ab7932be714b099d2eb326d6b3 (patch)
tree7367a1058580759ccf69f9558ed8fe4470fdb93d /Modules/zipimport.c
parenta72e2f9d100139b4a78b3b539909a6d42092e505 (diff)
downloadcpython-f4ecc751b1c640ab7932be714b099d2eb326d6b3.zip
cpython-f4ecc751b1c640ab7932be714b099d2eb326d6b3.tar.gz
cpython-f4ecc751b1c640ab7932be714b099d2eb326d6b3.tar.bz2
use proper constant instead of comment (noted by nnorwitz)
Diffstat (limited to 'Modules/zipimport.c')
-rw-r--r--Modules/zipimport.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/zipimport.c b/Modules/zipimport.c
index 355f69c..cd615ef 100644
--- a/Modules/zipimport.c
+++ b/Modules/zipimport.c
@@ -664,7 +664,7 @@ read_directory(char *archive)
"'%.200s'", archive);
return NULL;
}
- fseek(fp, -22, 2); /* Seek from end of file */
+ fseek(fp, -22, SEEK_END);
header_end = ftell(fp);
if (fread(endof_central_dir, 1, 22, fp) != 22) {
fclose(fp);