From: Kevin McCarthy Date: Fri, 2 Sep 2016 23:20:37 +0000 (-0700) Subject: Increase date buffer size for $folder_format. (closes #3863) X-Git-Tag: neomutt-20160910~12^2~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=99b3a4f7903d44d5339f45bcf603a705052301aa;p=neomutt Increase date buffer size for $folder_format. (closes #3863) The buffer size of 16 was sufficient to hold the %d format, but not for using %D. Change to use a SHORT_STRING. Thanks to Ian Zimmerman for the original patch, and to Antonio Radici for forwarding it on to us. --- diff --git a/browser.c b/browser.c index 15eccc553..8829bc898 100644 --- a/browser.c +++ b/browser.c @@ -146,7 +146,7 @@ folder_format_str (char *dest, size_t destlen, size_t col, int cols, char op, co unsigned long data, format_flag flags) { char fn[SHORT_STRING], tmp[SHORT_STRING], permission[11]; - char date[16], *t_fmt; + char date[SHORT_STRING], *t_fmt; time_t tnow; FOLDER *folder = (FOLDER *) data; struct passwd *pw;