Return to pch.c CVS log | Up to [local] / src / usr.bin / patch |
version 1.65, 2023/07/12 15:44:47 | version 1.66, 2023/07/12 15:45:34 | ||
---|---|---|---|
|
|
||
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 */ | ||
} | } |