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;
|
||||
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;
|
||||
|
|
Loading…
Reference in a new issue