1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

Merge branch 'fix-10' into 'security'

Check return value of localtime

See merge request !15
This commit is contained in:
Nei 2017-07-05 14:46:24 +00:00
commit fc3615120d

View File

@ -556,6 +556,9 @@ char *my_asctime(time_t t)
int len; int len;
tm = localtime(&t); tm = localtime(&t);
if (tm == NULL)
return g_strdup("???");
str = g_strdup(asctime(tm)); str = g_strdup(asctime(tm));
len = strlen(str); len = strlen(str);