diff options
Diffstat (limited to 'wai.c')
-rw-r--r-- | wai.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -338,7 +338,6 @@ int parse_module(u_char *binary, size_t len) { return i; } - int main(int argc, char **argv) { if (argc != 2) { @@ -356,7 +355,7 @@ int main(int argc, char **argv) { printf("size: %ld\n", st.st_size); unsigned char *binary = malloc(st.st_size); - fread(binary, st.st_size, st.st_size, file); + fread(binary, st.st_size, 1, file); if (parse_module(binary, st.st_size) == -1) { printf("error :(\n"); |