Skip to content

Commit

Permalink
Fixed enumerations that end with '/'.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Jul 23, 2002
1 parent f47fafe commit 4765a36
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions archivers/zip.c
Expand Up @@ -1258,6 +1258,9 @@ static LinkedStringList *ZIP_enumerateFiles(DirHandle *h,
LinkedStringList *retval = NULL, *p = NULL;
PHYSFS_uint32 dlen = strlen(dirname);

if (dirname[dlen - 1] == '/')
dlen--;

i = zip_find_start_of_dir(info, dirname, 0);
BAIL_IF_MACRO(i == -1, ERR_NO_SUCH_FILE, NULL);

Expand Down

0 comments on commit 4765a36

Please sign in to comment.