This commit is contained in:
jl777
2017-11-04 05:39:44 +02:00
parent 58f293eb98
commit cb7f1d47c1

View File

@@ -1370,7 +1370,7 @@ void *OS_loadfile(char *fname,uint8_t **bufp,long *lenp,long *allocsizep)
}
if ( filesize > buflen-1 )
{
*allocsizep = filesize+1;
*allocsizep = filesize;
*bufp = buf = (uint8_t *)realloc(buf,(long)*allocsizep);
}
rewind(fp);