This is an automated email from the ASF dual-hosted git repository. xiaoxiang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
The following commit(s) were added to refs/heads/master by this push: new 83f6c94 telnet.c: td_offset had been uint8_t. TELNET_RXBUFFER_SIZE over 256 had been broken. 83f6c94 is described below commit 83f6c9420910be20d4f05bf35f7a7a4410e9ab28 Author: Johannes Schock <johannes.sch...@nivus.com> AuthorDate: Wed Aug 19 10:46:05 2020 +0200 telnet.c: td_offset had been uint8_t. TELNET_RXBUFFER_SIZE over 256 had been broken. --- drivers/net/telnet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/telnet.c b/drivers/net/telnet.c index ee688be..00d3148 100644 --- a/drivers/net/telnet.c +++ b/drivers/net/telnet.c @@ -123,9 +123,9 @@ struct telnet_dev_s sem_t td_exclsem; /* Enforces mutually exclusive access */ sem_t td_iosem; /* I/O thread will notify that data is available */ uint8_t td_state; /* (See telnet_state_e) */ - uint8_t td_offset; /* Offset to the valid, pending bytes in the rxbuffer */ uint8_t td_crefs; /* The number of open references to the session */ uint8_t td_minor; /* Minor device number */ + uint16_t td_offset; /* Offset to the valid, pending bytes in the rxbuffer */ uint16_t td_pending; /* Number of valid, pending bytes in the rxbuffer */ #ifdef CONFIG_TELNET_SUPPORT_NAWS uint16_t td_rows; /* Number of NAWS rows */