Skip to content
Permalink
Browse files
More enumerate fixes.
  • Loading branch information
icculus committed Jul 26, 2002
1 parent d72698c commit 1b29c3888c0f4894364a8ca43f0d407fc5637e16
Showing with 2 additions and 3 deletions.
  1. +2 −3 archivers/zip.c
@@ -1289,9 +1289,8 @@ static LinkedStringList *ZIP_enumerateFiles(DirHandle *h,
while ((++i < max) && (ptr != NULL))
{
char *e_new = info->entries[i].name;
if ((strncmp(e, e_new, ln) == 0) && (e_new[ln] == '/'))
continue;
ptr = NULL;
if ((strncmp(e, e_new, ln) != 0) || (e_new[ln] != '/'))
break;
} /* while */
} /* else */
} /* while */

0 comments on commit 1b29c38

Please sign in to comment.