From: Kevin McCarthy Date: Tue, 15 Oct 2019 07:26:20 +0000 (+0800) Subject: Reduce line buffer size in mx_get_magic(). X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9506db1e4a01fadf503b63381ab2b60dee32b836;p=mutt Reduce line buffer size in mx_get_magic(). tmp is only used for mbox and mmdf iniital line examination. That only needs to look at 6 characters from the first line. --- diff --git a/mx.c b/mx.c index 472e8ee3..f693f0e0 100644 --- a/mx.c +++ b/mx.c @@ -391,7 +391,6 @@ int mx_get_magic (const char *path) { struct stat st; int magic = 0; - char tmp[_POSIX_PATH_MAX]; FILE *f; #ifdef USE_IMAP @@ -437,6 +436,7 @@ int mx_get_magic (const char *path) struct utimbuf times; #endif /* HAVE_UTIMENSAT */ int ch; + char tmp[10]; /* Some mailbox creation tools erroneously append a blank line to * a file before appending a mail message. This allows mutt to