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:
parent
1b4482f65d
commit
677097ac1d
@ -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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user