mirror of
https://github.com/rkd77/elinks.git
synced 2024-11-04 08:17:17 -05:00
ftp: Allocate a larger buffer for the timestamp string.
This commit is contained in:
parent
9d45ff5be1
commit
c8eccc486b
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user