From 3813d1e156fb381521d22b86178d6b38f6086b75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=97=D0=B8=D1=88=D0=B0=D0=BD=20=D0=9C=D0=B8=D1=80=D0=B7?= =?UTF-8?q?=D0=B0?= Date: Mon, 30 Sep 2024 20:11:14 +0200 Subject: [PATCH] use `_r` functions, since `_s` functions are not implemented --- .../test/clang-tidy/checkers/bugprone/unsafe-functions.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clang-tools-extra/test/clang-tidy/checkers/bugprone/unsafe-functions.c b/clang-tools-extra/test/clang-tidy/checkers/bugprone/unsafe-functions.c index 3e77af2a8a5148..86b00b504513bf 100644 --- a/clang-tools-extra/test/clang-tidy/checkers/bugprone/unsafe-functions.c +++ b/clang-tools-extra/test/clang-tidy/checkers/bugprone/unsafe-functions.c @@ -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