From 677097ac1d742d2ee1f5c932606326050a443e34 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Thu, 5 Dec 2019 11:40:34 -0500 Subject: 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. --- Templates/TestDriver.cxx.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Templates/TestDriver.cxx.in b/Templates/TestDriver.cxx.in index ad8bfb0..846a828 100644 --- a/Templates/TestDriver.cxx.in +++ b/Templates/TestDriver.cxx.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)); } -- cgit v0.12