mblaze

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

commit 019a6680f5581e18e820e98373dcba00d9bb77fe
parent 57f1dd38966724ff09130971f49a47ba86b33b05
Author: Christian Neukirchen <chneukirchen@gmail.com>
Date:   Thu,  4 Aug 2016 20:16:59 +0200

mscan: fix %M

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

diff --git a/mscan.c b/mscan.c @@ -244,6 +244,8 @@ oneline(char *file) struct message *msg = blaze822(file); char *flags = msg ? strstr(file, ":2,") : ""; + if (*flags) + flags += 3; int wleft = cols; @@ -318,7 +320,7 @@ oneline(char *file) break; case 'M': // raw Maildir flags if (!w) w = -3; - wleft -= printf("%.*s", w, flags); + wleft -= printf("%*s", w, flags); break; case 'n': {