diff options
author | Brad King <brad.king@kitware.com> | 2018-05-30 09:54:12 -0400 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-05-30 09:54:12 -0400 |
commit | f2201451df7cef79fccdcd3d89d85568ecff078e (patch) | |
tree | 4ff00d97abe5ed0cb3093f8d398116ce87089c63 | |
parent | f3936021318afa5bce1fadb65939306c6a7d574a (diff) | |
parent | 3af0438b4bccc599792f61a9f4be81b4bb36c3e3 (diff) | |
download | cmake-f2201451df7cef79fccdcd3d89d85568ecff078e.tar.gz |
Merge branch 'create_test_sourcelist-strcpy' into release-3.11
Merge-request: !2115
-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 ff3c869e5c..ac531c051b 100644 --- a/Templates/TestDriver.cxx.in +++ b/Templates/TestDriver.cxx.in @@ -48,7 +48,7 @@ static char* lowercase(const char* string) if (new_string == NULL) { /* NOLINT */ return NULL; /* NOLINT */ } - strncpy(new_string, string, stringSize); + strcpy(new_string, string); for (p = new_string; *p != 0; ++p) { *p = CM_CAST(char, tolower(*p)); } |