This commit is contained in:
2021-09-02 16:37:23 +02:00
parent 1f07e085ef
commit 0b3477bba1

View File

@ -3725,7 +3725,7 @@ int program_fpga(int file_des) {
return printSocketReadError(); return printSocketReadError();
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(MAX_FPGAPROGRAMSIZE); fpgasrc = malloc(filesize);
//fpgasrc = malloc(filesize + 1); //fpgasrc = malloc(filesize + 1);
uint64_t totalsize = filesize; uint64_t totalsize = filesize;