mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-10 02:16:37 +02:00
fix Misc.cpp file_load (this function isn't used anywhere)
This commit is contained in:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user