summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-05-30 09:54:12 -0400
committerBrad King <brad.king@kitware.com>2018-05-30 09:54:12 -0400
commitf2201451df7cef79fccdcd3d89d85568ecff078e (patch)
tree4ff00d97abe5ed0cb3093f8d398116ce87089c63
parentf3936021318afa5bce1fadb65939306c6a7d574a (diff)
parent3af0438b4bccc599792f61a9f4be81b4bb36c3e3 (diff)
downloadcmake-f2201451df7cef79fccdcd3d89d85568ecff078e.tar.gz
Merge branch 'create_test_sourcelist-strcpy' into release-3.11
Merge-request: !2115
-rw-r--r--Templates/TestDriver.cxx.in2
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));
}