remove vla

This commit is contained in:
Simon Wiesend 2025-12-07 17:59:29 +01:00
parent 9394b51158
commit fe7cf9b2ce
Signed by: wiesendsi102436
GPG Key ID: C18A833054142CF0

View File

@ -60,7 +60,7 @@ void test_get_duplicate_does_modify()
{
unsigned int arr1[] = {1, 2, 3, 4, 5, 4, 3, 2, 1}; // sorting would change this
size_t len1 = sizeof(arr1) / sizeof(arr1[0]);
unsigned int arr1Copy[len1];
unsigned int arr1Copy[9];
memcpy(arr1Copy, arr1, len1 * sizeof(unsigned int));
getDuplicate(arr1, len1); // return value does not matter