Skip to content

Commit

Permalink
use _r functions, since _s functions are not implemented
Browse files Browse the repository at this point in the history
  • Loading branch information
zimirza committed Sep 30, 2024
1 parent 1828498 commit 3813d1e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -173,11 +173,11 @@ void fUsingSafeFunctions(const struct tm *Time, FILE *F) {
return;

// no-warning, safe function from annex K is used
if (ctime_s(Buf, BUFSIZ, Time) != 0)
if (ctime_r(Buf, BUFSIZ, Time) != 0)
return;

// no-warning, safe function from annex K is used
if (localtime_s(Buf, BUFSIZ, Time) != 0)
if (localtime_r(Buf, BUFSIZ, Time) != 0)
return;

// no-warning, safe function from annex K is used
Expand Down

0 comments on commit 3813d1e

Please sign in to comment.