More enumerate fixes.

This commit is contained in:
Ryan C. Gordon 2002-07-26 17:03:26 +00:00
parent d72698ca6b
commit 1b29c3888c
1 changed files with 2 additions and 3 deletions

View File

@ -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 */