Browse Source

win32: check: fixed not copying enough bytes in localtime_r

Reported-by: Gisle Vanem
Signed-off-by: goldsimon <goldsimon@gmx.de>
master
goldsimon 8 years ago
parent
commit
8b7ed38338
  1. 2
      ports/win32/check/time.c

2
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;
}

Loading…
Cancel
Save