mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-03 04:03:23 +03:00
TestDriver: ignore strcpy call
clang-analyzer has a check for any use of `strcpy`. This usage is safe because it is allocated above using the length of the string.
This commit is contained in:
1 parent
1b4482f65d
commit
677097ac1d
1 file changed
+1
-1
@@ -54,7 +54,7 @@ static char* lowercase(const char* string)
|
||||
if (new_string == CM_NULL) { /* NOLINT */
|
||||
return CM_NULL; /* NOLINT */
|
||||
}
|
||||
strcpy(new_string, string);
|
||||
strcpy(new_string, string); /* NOLINT */
|
||||
for (p = new_string; *p != 0; ++p) {
|
||||
*p = CM_CAST(char, tolower(*p));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user