Skip to content
Permalink
Browse files
Fixed enumerations that end with '/'.
  • Loading branch information
icculus committed Jul 23, 2002
1 parent f47fafe commit 4765a364feef16f1d2624ca82b8ee7c9533b2cc2
Showing with 3 additions and 0 deletions.
  1. +3 −0 archivers/zip.c
@@ -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);

0 comments on commit 4765a36

Please sign in to comment.