archivers/zip.c
branchstable-1.0
changeset 716 79f7909d5437
parent 579 4170811a0439
child 766 3970811e14f4
equal deleted inserted replaced
713:683146a9d5d8 716:79f7909d5437
  1206         name = info->entries[middle].name;
  1206         name = info->entries[middle].name;
  1207         rc = strncmp(path, name, dlen);
  1207         rc = strncmp(path, name, dlen);
  1208         if (rc == 0)
  1208         if (rc == 0)
  1209         {
  1209         {
  1210             char ch = name[dlen];
  1210             char ch = name[dlen];
  1211             if (ch < '/') /* make sure this isn't just a substr match. */
  1211             if ('/' < ch) /* make sure this isn't just a substr match. */
  1212                 rc = -1;
  1212                 rc = -1;
  1213             else if (ch > '/')
  1213             else if ('/' > ch)
  1214                 rc = 1;
  1214                 rc = 1;
  1215             else 
  1215             else 
  1216             {
  1216             {
  1217                 if (stop_on_first_find) /* Just checking dir's existance? */
  1217                 if (stop_on_first_find) /* Just checking dir's existance? */
  1218                     return(middle);
  1218                     return(middle);