More enumerate fixes.
authorRyan C. Gordon <icculus@icculus.org>
Fri, 26 Jul 2002 17:03:26 +0000
changeset 402 f539eb75380a
parent 401 0c6ab972492d
child 403 6da7fe0dd020
More enumerate fixes.
archivers/zip.c
--- a/archivers/zip.c	Fri Jul 26 06:49:29 2002 +0000
+++ b/archivers/zip.c	Fri Jul 26 17:03:26 2002 +0000
@@ -1289,9 +1289,8 @@
             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 */