diff options
author | Leah Neukirchen <leah@vuxu.org> | 2017-04-27 13:54:10 +0200 |
---|---|---|
committer | Leah Neukirchen <leah@vuxu.org> | 2017-04-27 13:54:10 +0200 |
commit | b21daa47d6a2e32b7775aae36b69947ee9c504a0 (patch) | |
tree | d7c0f1fdce3cecb98fcc489d3ebb88551ccf0bde /mscan.c | |
parent | 1f097f28e08aabcb382283e429494a25c552d87d (diff) | |
download | mblaze-b21daa47d6a2e32b7775aae36b69947ee9c504a0.tar.gz mblaze-b21daa47d6a2e32b7775aae36b69947ee9c504a0.tar.xz mblaze-b21daa47d6a2e32b7775aae36b69947ee9c504a0.zip |
mscan: squeeze slashes for %F
Fixes #30.
Diffstat (limited to 'mscan.c')
-rw-r--r-- | mscan.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/mscan.c b/mscan.c index 26d23a0..d6607f3 100644 --- a/mscan.c +++ b/mscan.c @@ -436,7 +436,10 @@ oneline(char *file) e--; while (file < e && *e != '/') e--; - char *b = e - 1; + while (file < e && *e == '/') + e--; + char *b = e; + e++; while (file < b && *b != '/') b--; if (*b == '/') |