Type: Posts; User: iMalc
You probably don't want a sizeof in there. You probably want just: Datacur->FRdata = malloc(max_bytes);