mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06: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:
@@ -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