Use localtime_s on windows

(cherry picked from commit c3a1ed780c)
This commit is contained in:
akallabeth 2020-05-25 14:20:23 +02:00 committed by Armin Novak
parent 32717ff9db
commit ac9f5e8f5d

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)