From: miha-q <> Date: Sun, 3 Mar 2024 02:17:07 +0000 (-0500) Subject: Sat Mar 2 09:17:07 PM EST 2024 X-Git-Url: http://www.foleosoft.com/?a=commitdiff_plain;h=7416d9d64622674cf143ed12b7e87ecc09221a98;p=QAnsel.git Sat Mar 2 09:17:07 PM EST 2024 --- diff --git a/src/gpu.c b/src/gpu.c index e968d95..9cb12ed 100644 --- a/src/gpu.c +++ b/src/gpu.c @@ -125,7 +125,7 @@ void GPU_mmul(double* ptrR, double* ptrA, double* ptrB, size_t rowsA, size_t col #ifdef GPU_DEBUG printf("Line %d.\n", __LINE__); #endif - char ptr[gpu_mmul_cl_len + 1]; + char* ptr = malloc(gpu_mmul_cl_len + 1); memcpy(ptr, gpu_mmul_cl, gpu_mmul_cl_len); #ifdef GPU_DEBUG printf("Line %d.\n", __LINE__);