sd-boot: fix trailing whitespace trimming

Fixes #10922.
This commit is contained in:
Yu Watanabe 2018-11-26 06:43:33 +09:00
parent e9c026c2bf
commit d949c467b8
1 changed files with 1 additions and 1 deletions

View File

@ -981,7 +981,7 @@ skip:
}
/* remove trailing whitespace */
while (linelen > 0 && strchra(sep, line[linelen-1]))
while (linelen > 0 && strchra((CHAR8 *)" \t", line[linelen-1]))
linelen--;
line[linelen] = '\0';