diff options
author | Brad King <brad.king@kitware.com> | 2018-05-31 12:47:30 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2018-05-31 12:51:05 (GMT) |
commit | f5ca5850df6846347b2cfa4ffb1a3f3bac2caf46 (patch) | |
tree | 2ed44270fa605b59a1ac371b3ff3fb6142a48670 | |
parent | d155b536cb2c391c883b1c84519e48a74fe1c97a (diff) | |
parent | 3af0438b4bccc599792f61a9f4be81b4bb36c3e3 (diff) | |
download | CMake-f5ca5850df6846347b2cfa4ffb1a3f3bac2caf46.zip CMake-f5ca5850df6846347b2cfa4ffb1a3f3bac2caf46.tar.gz CMake-f5ca5850df6846347b2cfa4ffb1a3f3bac2caf46.tar.bz2 |
Merge topic 'create_test_sourcelist-strcpy'
3af0438b4b TestDriver: Replace strncpy with strcpy
Acked-by: Kitware Robot <kwrobot@kitware.com>
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 ff3c869..ac531c0 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)); } |