archivers/zip.c
changeset 579 4170811a0439
parent 578 bff1af8455ca
child 644 1cb5533d369c
child 716 79f7909d5437
--- a/archivers/zip.c	Sun Jul 20 21:08:24 2003 +0000
+++ b/archivers/zip.c	Sun Jul 20 21:13:25 2003 +0000
@@ -1187,7 +1187,7 @@
                                             int stop_on_first_find)
 {
     PHYSFS_sint32 lo = 0;
-    PHYSFS_sint32 hi = (PHYSFS_sint32) info->entryCount;
+    PHYSFS_sint32 hi = (PHYSFS_sint32) (info->entryCount - 1);
     PHYSFS_sint32 middle;
     PHYSFS_uint32 dlen = strlen(path);
     PHYSFS_sint32 retval = -1;