Skip to content
Snippets Groups Projects
Commit 1673e19c authored by danicampora's avatar danicampora
Browse files

cc3200: Make telnet server ignore NULL characters.

This fixes paste mode (Ctrl-E) which was not working for the
telnet REPL.
parent af3e4541
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment