Use localtime_s on windows
authorakallabeth <akallabeth@posteo.net>
Mon, 25 May 2020 12:20:23 +0000 (14:20 +0200)
committerArmin Novak <armin.novak@thincast.com>
Mon, 22 Jun 2020 10:12:35 +0000 (12:12 +0200)
(cherry picked from commit c3a1ed780cc4aed639e3391d7cafb9edc9dc623c)

channels/printer/client/win/printer_win.c

index 83dadba..86b5e66 100644 (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)