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:
Ben Boeckel 2019-12-05 11:40:34 -05:00
parent 1b4482f65d
commit 677097ac1d

View File

@ -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));
}