summaryrefslogtreecommitdiffstats
path: root/browser.c
diff options
context:
space:
mode:
authorKevin McCarthy <kevin@8t8.us>2016-09-02 16:20:37 -0700
committerKevin McCarthy <kevin@8t8.us>2016-09-02 16:20:37 -0700
commitb647862acb696091076f247731e978a56a7d7587 (patch)
tree6760bab6309e8b93733eaaa6b22e67fcb3778e89 /browser.c
parent45868a089a08b18d1dff16b041fa09db9dc835da (diff)
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.
Diffstat (limited to 'browser.c')
-rw-r--r--browser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/browser.c b/browser.c
index 15eccc55..8829bc89 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;