mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-30 06:00:07 +01:00
util: shut up clang-tidy about our use of strcat
These are pre-counted strings, we're fine. Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1175>
This commit is contained in:
parent
0fc52abd79
commit
051ac26a20
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue