sd-boot: fix trailing whitespace trimming
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 25 Nov 2018 21:43:33 +0000 (06:43 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 25 Nov 2018 21:43:36 +0000 (06:43 +0900)
Fixes #10922.

src/boot/efi/boot.c

index d3a26fd..4719eea 100644 (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';