Skip to content

Commit 1673e19

Browse files
author
danicampora
committed
cc3200: Make telnet server ignore NULL characters.
This fixes paste mode (Ctrl-E) which was not working for the telnet REPL.
1 parent af3e454 commit 1673e19

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

cc3200/telnet/telnet.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,9 +451,13 @@ static void telnet_parse_input (uint8_t *str, int16_t *len) {
451451
(*len)--;
452452
_str++;
453453
}
454-
else {
454+
else if (*_str > 0) {
455455
*str++ = *_str++;
456456
}
457+
else {
458+
_str++;
459+
*len -= 1;
460+
}
457461
}
458462
else {
459463
// in case we have received an incomplete telnet option, unlikely, but possible

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy