From a52a2fe12a5ac1d4ff64d328b49a9dcff101d778 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rostislav=20St=C5=99=C3=ADbrn=C3=BD?= Date: Fri, 4 Nov 2022 12:12:43 +0100 Subject: [PATCH] fix --- src/log.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/log.c b/src/log.c index 89a861d..b112041 100644 --- a/src/log.c +++ b/src/log.c @@ -120,7 +120,7 @@ int log_add_fp(FILE *fp, int level) { static void init_event(log_Event *ev, void *udata) { if (!ev->time) { time_t t = time(NULL); - ev->time = localtime(&t, &ev->time_buf); + ev->time = localtime_r(&t, &ev->time_buf); } ev->udata = udata; }