Show reason when cannot open a file, and some stuffs #3
1 changed files with 81 additions and 82 deletions
|
@ -101,8 +101,7 @@ int main(int argc, char *argv[])
|
||||||
int type;
|
int type;
|
||||||
char obuf[7];
|
char obuf[7];
|
||||||
unsigned int dest_addr;
|
unsigned int dest_addr;
|
||||||
while ((rbuf[len - 1] == '\r') || (rbuf[len - 1] == '\n'))
|
while ((rbuf[len - 1] == '\r') || (rbuf[len - 1] == '\n')) len--;
|
||||||
len--;
|
|
||||||
printf("%d, %s\n", (int)len, rbuf);
|
printf("%d, %s\n", (int)len, rbuf);
|
||||||
if (!check_hex_line(rbuf, len))
|
if (!check_hex_line(rbuf, len))
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue