aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2016-08-04 20:16:59 +0200
committerChristian Neukirchen <chneukirchen@gmail.com>2016-08-04 20:16:59 +0200
commit019a6680f5581e18e820e98373dcba00d9bb77fe (patch)
tree58d859cdad8ea3b0140ae7e022b76f050cfc7904
parent57f1dd38966724ff09130971f49a47ba86b33b05 (diff)
downloadmblaze-019a6680f5581e18e820e98373dcba00d9bb77fe.tar.gz
mscan: fix %M
-rw-r--r--mscan.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/mscan.c b/mscan.c
index 48e20d0..1148a31 100644
--- 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':
{