Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
More enumerate fixes.
  • Loading branch information
icculus committed Jul 26, 2002
1 parent d72698c commit 1b29c38
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions archivers/zip.c
Expand Up @@ -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 */
Expand Down

0 comments on commit 1b29c38

Please sign in to comment.