fix Misc.cpp file_load (this function isn't used anywhere)
This commit is contained in:
parent
d5347b0906
commit
cd448a5747
@ -131,7 +131,7 @@ void *file_load(char *fn, int *size)
|
|||||||
}
|
}
|
||||||
int readsize = fread(s, *size, 1, f);
|
int readsize = fread(s, *size, 1, f);
|
||||||
fclose(f);
|
fclose(f);
|
||||||
if (readsize != *size)
|
if (readsize != 1)
|
||||||
{
|
{
|
||||||
free(s);
|
free(s);
|
||||||
return NULL;
|
return NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user