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)); }