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

Smaller standard input read buffer (16 bytes)

This commit is contained in:
Nick Patavalis
2018-01-16 04:26:07 +02:00
parent d4bf3502d5
commit a36bc69ee1

View File

@ -277,7 +277,7 @@ struct tty_q {
.buff = NULL
};
#define STI_RD_SZ 128
#define STI_RD_SZ 16
#define TTY_RD_SZ 128
int tty_write_sz;
@ -1399,7 +1399,6 @@ loop(void)
} state;
fd_set rdset, wrset;
int r, n;
unsigned char c;
int stdin_closed;
state = ST_TRANSPARENT;
@ -1445,6 +1444,7 @@ loop(void)
/* read from terminal */
char buff_rd[STI_RD_SZ];
int i;
unsigned char c;
do {
n = read(STI, buff_rd, sizeof(buff_rd));