1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-10-04 04:14:18 -04:00

ftp: Allocate a larger buffer for the timestamp string.

This commit is contained in:
Kalle Olavi Niemitalo 2007-03-20 21:28:30 +02:00 committed by Witold Filipczyk
parent b636024ede
commit 21bdcad9c7

View File

@ -1150,7 +1150,10 @@ display_dir_entry(struct cache_entry *cached, off_t *pos, int *tries,
time_t when = ftp_info->mtime; time_t when = ftp_info->mtime;
struct tm *when_tm; struct tm *when_tm;
unsigned char *fmt; unsigned char *fmt;
unsigned char date[13]; /* LC_TIME=fi_FI.UTF_8 can generate "elo___ 31 23:59"
* where each _ denotes U+00A0 encoded as 0xC2 0xA0,
* thus needing a 19-byte buffer. */
unsigned char date[80];
int wr; int wr;
if (ftp_info->local_time_zone) if (ftp_info->local_time_zone)