mscan: squeeze slashes for %F

Fixes #30.
This commit is contained in:
Leah Neukirchen 2017-04-27 13:54:10 +02:00
parent 1f097f28e0
commit b21daa47d6

View File

@ -436,7 +436,10 @@ oneline(char *file)
e--; e--;
while (file < e && *e != '/') while (file < e && *e != '/')
e--; e--;
char *b = e - 1; while (file < e && *e == '/')
e--;
char *b = e;
e++;
while (file < b && *b != '/') while (file < b && *b != '/')
b--; b--;
if (*b == '/') if (*b == '/')