mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
dist/tools/tunslip6: Fix off by one on index in is_sensible_string
This commit is contained in:
parent
fd3ff61747
commit
9dfd4ccf11
2
dist/tools/tunslip/tunslip6.c
vendored
2
dist/tools/tunslip/tunslip6.c
vendored
@ -157,7 +157,7 @@ is_sensible_string(const unsigned char *s, int len)
|
|||||||
}
|
}
|
||||||
|
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
for (int i = 1; i < len; i++) {
|
for (int i = 0; i < len; i++) {
|
||||||
if (s[i] == 0 || s[i] == '\r' || s[i] == '\n' || s[i] == '\t') {
|
if (s[i] == 0 || s[i] == '\r' || s[i] == '\n' || s[i] == '\t') {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user