io_ihex: Lets remove infinite cycle

This commit is contained in:
Fedor Sakharov 2014-03-11 20:41:40 +04:00
parent 8cfd3d475c
commit 977b5fb706

View File

@ -157,6 +157,13 @@ static int ihex2bin(ut8 *mem, char *str) {
break;
case 1: // EOF
ptr = NULL;
break;
case 2:
case 3:
case 4:
case 5:
ptr = strchr(ptr + 1, ':');
break;
}
} while (ptr);