1
0
mirror of https://github.com/UzixLS/picocom.git synced 2025-07-19 07:21:18 +03:00

fd_readline: Fixed bug when displaying non-printables (xput).

Was writing one char less than required.
This commit is contained in:
Nick Patavalis
2015-08-22 16:19:34 +03:00
parent b443e39e43
commit 991ddfe638

2
fdio.c
View File

@ -91,7 +91,7 @@ xput (int fd, unsigned char c)
char b[4];
b[0] = '\\'; b[1] = 'x'; b[2] = hex[c >> 4]; b[3] = hex[c & 0x0f];
return write(fd, b, sizeof(b) - 1);
return write(fd, b, sizeof(b));
}
static int