diff options
author | Kevin McCarthy <kevin@8t8.us> | 2016-09-02 16:20:37 -0700 |
---|---|---|
committer | Kevin McCarthy <kevin@8t8.us> | 2016-09-02 16:20:37 -0700 |
commit | b647862acb696091076f247731e978a56a7d7587 (patch) | |
tree | 6760bab6309e8b93733eaaa6b22e67fcb3778e89 /browser.c | |
parent | 45868a089a08b18d1dff16b041fa09db9dc835da (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |