src/archiver_qpak.c
changeset 1142 25880a820248
parent 1138 e57e3936d071
child 1191 f02c977477b9
--- a/src/archiver_qpak.c	Thu Feb 17 15:02:20 2011 -0500
+++ b/src/archiver_qpak.c	Fri Feb 18 12:38:05 2011 -0500
@@ -434,8 +434,11 @@
 
             if (thispath[pathlen] == '\0') /* found entry? */
                 return &a[middle];
+            /* adjust search params, try again. */
+            else if (thispath[pathlen] > '/')
+                hi = middle - 1;
             else
-                hi = middle - 1;  /* adjust search params, try again. */
+                lo = middle + 1;
         } /* if */
     } /* while */