]> granicus.if.org Git - neomutt/commitdiff
Increase date buffer size for $folder_format. (closes #3863)
authorKevin McCarthy <kevin@8t8.us>
Fri, 2 Sep 2016 23:20:37 +0000 (16:20 -0700)
committerKevin McCarthy <kevin@8t8.us>
Fri, 2 Sep 2016 23:20:37 +0000 (16:20 -0700)
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.

browser.c

index 15eccc553d9c4d0ef16c09c0d6521873d925e443..8829bc8982642b23d9f4db6a12384e1e77d773aa 100644 (file)
--- 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;