Skip to content
Snippets Groups Projects
Commit 692fe4c2 authored by deuce's avatar deuce
Browse files

If fread() fails, exit loop... should fix the last statement stutter.

parent cabaa332
Branches
Tags
No related merge requests found
......@@ -1243,7 +1243,8 @@ void decompile(FILE *bin, FILE *src)
ush=ftell(bin);
fprintf(src,":label_%04x\n",ush);
fread(&uch,1,1,bin);
if(fread(&uch,1,1,bin)!=1)
break;
switch(uch) {
case CS_USE_INT_VAR:
usevar=TRUE;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment