Skip to content
Snippets Groups Projects
Commit 20c8110c authored by deuce's avatar deuce
Browse files

Fix wrong calloc() size in label resolving.

parent 6c5de983
No related branches found
No related tags found
No related merge requests found
......@@ -1299,7 +1299,8 @@ void decompile(FILE *bin, FILE *srcfile)
char *labels;
size_t currpos=0;
labels=(char *)calloc(1,filelength(fileno(srcfile)));
currpos=filelength(fileno(bin));
labels=(char *)calloc(1,filelength(fileno(bin)));
if(labels==NULL) {
printf("ERROR allocating memory for labels\n");
return;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment