From 8b7ed383382da5c6c74eaf588bc31bd777976375 Mon Sep 17 00:00:00 2001 From: goldsimon Date: Wed, 21 Feb 2018 16:17:12 +0100 Subject: [PATCH] win32: check: fixed not copying enough bytes in localtime_r Reported-by: Gisle Vanem Signed-off-by: goldsimon --- ports/win32/check/time.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ports/win32/check/time.c b/ports/win32/check/time.c index 15306fe..8a0e633 100644 --- a/ports/win32/check/time.c +++ b/ports/win32/check/time.c @@ -59,6 +59,6 @@ localtime_r(const time_t *timer, struct tm *result) if (local_result == NULL || result == NULL) return NULL; - memcpy(result, local_result, sizeof (result)); + memcpy(result, local_result, sizeof(*result)); return result; }