mirror of
https://github.com/reactos/CMake.git
synced 2024-11-24 20:19:53 +00:00
TestDriver: Replace strncpy with strcpy
GCC 8.1.0 now gives an error if `strncpy` is called with a bound depending on the length of the source argument. Replace `strncpy` with `strcpy` as the length is known a priori. Fixes: #18038
This commit is contained in:
parent
519427e32c
commit
3af0438b4b
@ -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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user