[BACK]Return to pch.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / patch

Diff for /src/usr.bin/patch/pch.c between version 1.65 and 1.66

version 1.65, 2023/07/12 15:44:47 version 1.66, 2023/07/12 15:45:34
Line 1484 
Line 1484 
         size_t n;          size_t n;
         const char *cp;          const char *cp;
   
         for (n = 0, cp = path; (cp = strchr(cp, '/')) != NULL; n++, cp++) {          for (n = 0, cp = path; (cp = strchr(cp, '/')) != NULL; n++) {
                   cp++;
                 while (*cp == '/')                  while (*cp == '/')
                         cp++;           /* skip consecutive slashes */                          cp++;           /* skip consecutive slashes */
         }          }

Legend:
Removed from v.1.65  
changed lines
  Added in v.1.66