From 6310898b10665e161b1f4594a17ad23ac7fc6535 Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Wed, 6 Dec 2017 14:00:38 +0100 Subject: mshow: list, reply: skip leading spaces for file names --- mshow.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'mshow.c') diff --git a/mshow.c b/mshow.c index f50ef52..98c309e 100644 --- a/mshow.c +++ b/mshow.c @@ -386,6 +386,8 @@ list_mime(int depth, struct message *msg, char *body, size_t bodylen) void list(char *file) { + while (*file == ' ' || *file == '\t') + file++; struct message *msg = blaze822_file(file); if (!msg) return; @@ -397,6 +399,8 @@ list(char *file) void reply(char *file) { + while (*file == ' ' || *file == '\t') + file++; struct message *msg = blaze822_file(file); if (!msg) return; -- cgit 1.4.1