mirror of
https://github.com/weechat/weechat.git
synced 2026-07-05 01:03:14 +02:00
core, plugins: check return code of strftime function
This commit is contained in:
@@ -148,8 +148,9 @@ xfer_buffer_refresh (const char *hotlist)
|
||||
date_tmp = localtime (&(ptr_xfer->start_time));
|
||||
if (date_tmp)
|
||||
{
|
||||
strftime (date, sizeof (date),
|
||||
"%a, %d %b %Y %H:%M:%S", date_tmp);
|
||||
if (strftime (date, sizeof (date),
|
||||
"%a, %d %b %Y %H:%M:%S", date_tmp) == 0)
|
||||
date[0] = '\0';
|
||||
}
|
||||
weechat_printf_y (xfer_buffer, (line * 2) + 3,
|
||||
"%s%s%s %s%s%s%s%s",
|
||||
|
||||
Reference in New Issue
Block a user