Commit 42509417 authored by Wayne Davison's avatar Wayne Davison

Fixed a dropped '-'.

parent a2687b64
......@@ -734,7 +734,7 @@ void sanitize_path(char *p, char *reldir)
while (1) {
/* copy one component through next slash */
*sanp++ = *p++;
if (*p == '\0' || p[1] == '/') {
if (*p == '\0' || p[-1] == '/') {
while (*p == '/') {
/* skip multiple slashes */
p++;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment