Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
f1ed8c8a
Commit
f1ed8c8a
authored
Apr 28, 2015
by
Daniel Campora
Browse files
cc3200: Improve telnet_parse_input() in case of an incomplete option.
parent
04588330
Changes
1
Hide whitespace changes
Inline
Side-by-side
cc3200/telnet/telnet.c
View file @
f1ed8c8a
...
...
@@ -468,8 +468,9 @@ static void telnet_parse_input (uint8_t *str, int16_t *len) {
}
}
else
{
_str
+=
3
;
*
len
-=
3
;
// in case we have received an incomplete telnet option, unlikely, but possible
_str
+=
MIN
(
3
,
*
len
);
*
len
-=
MIN
(
3
,
*
len
);
}
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment