This commit is contained in:
maliakal_d 2021-09-02 16:52:13 +02:00
parent ae52dc106b
commit cf96545f60

View File

@ -3725,7 +3725,8 @@ int program_fpga(int file_des) {
return printSocketReadError();
LOG(logINFOBLUE, ("Program size is: %lld\n",
(long long unsigned int)filesize));
fpgasrc = malloc(filesize);
int fsize = filesize;
fpgasrc = malloc(fsize);
if (fpgasrc == NULL) {
LOG(logERROR, ("Could not malloc\n"));
ret = FAIL;