mblaze

Unix utilities to deal with Maildir - my mirror
git clone https://pi.duncano.de/git/mblaze.git
Log | Files | Refs | README | COPYING

commit b21daa47d6a2e32b7775aae36b69947ee9c504a0
parent 1f097f28e08aabcb382283e429494a25c552d87d
Author: Leah Neukirchen <leah@vuxu.org>
Date:   Thu, 27 Apr 2017 13:54:10 +0200

mscan: squeeze slashes for %F

Fixes #30.

Diffstat:
mscan.c | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git 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 == '/')