summary refs log tree commit diff
path: root/mscan.c
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2017-04-27 13:54:10 +0200
committerLeah Neukirchen <leah@vuxu.org>2017-04-27 13:54:10 +0200
commitb21daa47d6a2e32b7775aae36b69947ee9c504a0 (patch)
treed7c0f1fdce3cecb98fcc489d3ebb88551ccf0bde /mscan.c
parent1f097f28e08aabcb382283e429494a25c552d87d (diff)
downloadmblaze-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.c5
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 == '/')