Use localtime_s on windows

This commit is contained in:
akallabeth 2020-05-25 14:20:23 +02:00 committed by Armin Novak
parent a45afe9db7
commit c3a1ed780c

View File

@ -85,7 +85,7 @@ static WCHAR* printer_win_get_printjob_name(size_t id)
int rc;
tt = time(NULL);
t = localtime_r(&tt, &tres);
t = localtime_s(&tt, &tres);
str = calloc(len, sizeof(WCHAR));
if (!str)