From c2e0dcec3c1df0775e169046d61689abb975350a Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Sun, 16 Dec 2018 18:53:22 +0100 Subject: mshow: extract: skip leading spaces for file names Found by Solene Rapenne. --- mshow.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'mshow.c') diff --git a/mshow.c b/mshow.c index fb35330..c4f5228 100644 --- a/mshow.c +++ b/mshow.c @@ -555,6 +555,8 @@ extract_mime(int depth, struct message *msg, char *body, size_t bodylen) void extract_cb(char *file) { + while (*file == ' ' || *file == '\t') + file++; struct message *msg = blaze822_file(file); if (!msg) return; -- cgit 1.4.1