diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2019-12-05 16:40:34 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2019-12-05 19:24:34 (GMT) |
commit | 677097ac1d742d2ee1f5c932606326050a443e34 (patch) | |
tree | 0a482bc39e8a5ff361fa7f1b851e49200e955267 /Templates | |
parent | 1b4482f65dd41f21ec8abc0777b8dc1f0381bbd6 (diff) | |
download | CMake-677097ac1d742d2ee1f5c932606326050a443e34.zip CMake-677097ac1d742d2ee1f5c932606326050a443e34.tar.gz CMake-677097ac1d742d2ee1f5c932606326050a443e34.tar.bz2 |
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.
Diffstat (limited to 'Templates')
-rw-r--r-- | Templates/TestDriver.cxx.in | 2 |
1 files changed, 1 insertions, 1 deletions
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)); } |