Skip to content

Commit

Permalink
fix Misc.cpp file_load (this function isn't used anywhere)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob1 committed Feb 28, 2017
1 parent d5347b0 commit cd448a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Misc.cpp
Expand Up @@ -131,7 +131,7 @@ void *file_load(char *fn, int *size)
}
int readsize = fread(s, *size, 1, f);
fclose(f);
if (readsize != *size)
if (readsize != 1)
{
free(s);
return NULL;
Expand Down

0 comments on commit cd448a5

Please sign in to comment.