Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Off-by-one fix by Dieter Baron...fixes segfault in zip archive search…
…ing in

 certain cases.
  • Loading branch information
icculus committed Jul 20, 2003
1 parent f4309f5 commit f3191d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion archivers/zip.c
Expand Up @@ -1187,7 +1187,7 @@ static PHYSFS_sint32 zip_find_start_of_dir(ZIPinfo *info, const char *path,
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;
Expand Down

0 comments on commit f3191d0

Please sign in to comment.