Skip to content

Commit

Permalink
cc3200: Make telnet server ignore NULL characters.
Browse files Browse the repository at this point in the history
This fixes paste mode (Ctrl-E) which was not working for the
telnet REPL.
  • Loading branch information
danicampora committed Nov 5, 2015
1 parent af3e454 commit 1673e19
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cc3200/telnet/telnet.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1673e19

Please sign in to comment.