Commit 84a76fba authored by Sergey Lyubka's avatar Sergey Lyubka

Remove repeating backslashes only on Windows

parent 76dd3105
......@@ -1696,9 +1696,9 @@ static void remove_double_dots_and_double_slashes(char *s) {
while (*s != '\0') {
*p++ = *s++;
if (s[-1] == '/' || s[-1] == '\\') {
if (s[-1] == '/' || s[-1] == DIRSEP) {
// Skip all following slashes and backslashes
while (*s == '/' || *s == '\\') {
while (*s == '/' || *s == DIRSEP) {
s++;
}
......
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