This commit is contained in:
maliakal_d 2021-09-02 16:39:36 +02:00
parent 0b3477bba1
commit ae52dc106b

View File

@ -3726,6 +3726,10 @@ int program_fpga(int file_des) {
LOG(logINFOBLUE, ("Program size is: %lld\n", LOG(logINFOBLUE, ("Program size is: %lld\n",
(long long unsigned int)filesize)); (long long unsigned int)filesize));
fpgasrc = malloc(filesize); fpgasrc = malloc(filesize);
if (fpgasrc == NULL) {
LOG(logERROR, ("Could not malloc\n"));
ret = FAIL;
}
//fpgasrc = malloc(filesize + 1); //fpgasrc = malloc(filesize + 1);
uint64_t totalsize = filesize; uint64_t totalsize = filesize;