Permalink
Browse files

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

  • Loading branch information...
jacob1 committed Feb 28, 2017
1 parent d5347b0 commit cd448a5747b7fbef28f61c061c58f10ca1685250
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Misc.cpp
@@ -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;

0 comments on commit cd448a5

Please sign in to comment.