fix Misc.cpp file_load (this function isn't used anywhere)

This commit is contained in:
jacob1 2017-02-27 22:27:48 -05:00
parent d5347b0906
commit cd448a5747

View File

@ -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;