Merge branch 'security' into 'master'

Security

Closes #10

See merge request !17

(cherry picked from commit 5e26325317)
This commit is contained in:
Nei 2017-07-05 14:47:30 +00:00 committed by Ailin Nemui
commit 5e46c6dda0
2 changed files with 13 additions and 7 deletions

View file

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