archivers/zip.c
changeset 715 d6bf881b6e1e
parent 691 71d9affe0d8a
child 754 e7cd7411eadf
equal deleted inserted replaced
714:03c2e2ee0905 715:d6bf881b6e1e
  1144         name = info->entries[middle].name;
  1144         name = info->entries[middle].name;
  1145         rc = strncmp(path, name, dlen);
  1145         rc = strncmp(path, name, dlen);
  1146         if (rc == 0)
  1146         if (rc == 0)
  1147         {
  1147         {
  1148             char ch = name[dlen];
  1148             char ch = name[dlen];
  1149             if (ch < '/') /* make sure this isn't just a substr match. */
  1149             if ('/' < ch) /* make sure this isn't just a substr match. */
  1150                 rc = -1;
  1150                 rc = -1;
  1151             else if (ch > '/')
  1151             else if ('/' > ch)
  1152                 rc = 1;
  1152                 rc = 1;
  1153             else 
  1153             else 
  1154             {
  1154             {
  1155                 if (stop_on_first_find) /* Just checking dir's existance? */
  1155                 if (stop_on_first_find) /* Just checking dir's existance? */
  1156                     return(middle);
  1156                     return(middle);