compress // to /

This commit is contained in:
Bill Currie 2007-03-21 13:05:23 +00:00 committed by Jeff Teunissen
parent 5a1c57fd87
commit 2d6f8c6501

View file

@ -739,8 +739,13 @@ QFS_CompressPath (const char *pth)
}
while (*p && *p != '/')
p++;
if (*p == '/')
if (*p == '/') {
p++;
for (d = p; *d == '/'; d++)
;
if (d != p)
strcpy (p, d);
}
}
return path;