cc3200: Make telnet server ignore NULL characters.

This fixes paste mode (Ctrl-E) which was not working for the
telnet REPL.
pyboard-no-0x04
danicampora 2015-11-05 21:13:14 +01:00
parent af3e45419c
commit 1673e19cb9
1 changed files with 5 additions and 1 deletions

View File

@ -451,9 +451,13 @@ static void telnet_parse_input (uint8_t *str, int16_t *len) {
(*len)--;
_str++;
}
else {
else if (*_str > 0) {
*str++ = *_str++;
}
else {
_str++;
*len -= 1;
}
}
else {
// in case we have received an incomplete telnet option, unlikely, but possible