Show reason when cannot open a file, and some stuffs #3

Open
K4zoku wants to merge 4 commits from K4zoku/master into master
Showing only changes of commit b617769511 - Show all commits

View file

@ -101,8 +101,7 @@ int main(int argc, char *argv[])
int type;
char obuf[7];
unsigned int dest_addr;
while ((rbuf[len - 1] == '\r') || (rbuf[len - 1] == '\n'))
len--;
while ((rbuf[len - 1] == '\r') || (rbuf[len - 1] == '\n')) len--;
printf("%d, %s\n", (int)len, rbuf);
if (!check_hex_line(rbuf, len))
break;