1
0
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:
Joakim Nohlgård 2016-07-23 10:04:13 +02:00
parent fd3ff61747
commit 9dfd4ccf11

View File

@ -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;
} }