From 051ac26a201cdcc16b8ab7a3dc3f76b158d59f15 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 3 Apr 2025 13:16:06 +1000 Subject: [PATCH] util: shut up clang-tidy about our use of strcat These are pre-counted strings, we're fine. Part-of: --- src/util-strings.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util-strings.c b/src/util-strings.c index 8732cc5e..d68b2746 100644 --- a/src/util-strings.c +++ b/src/util-strings.c @@ -192,10 +192,10 @@ strv_join(char **strv, const char *joiner) str = zalloc(slen + 1); /* trailing \0 */ for (s = strv; *s; s++) { - strcat(str, *s); + strcat(str, *s); // NOLINT: security.insecureAPI.strcpy --count; if (count > 0) - strcat(str, joiner); + strcat(str, joiner); // NOLINT: security.insecureAPI.strcpy } return str;