]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
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 d3a26fd7a0e0d0c18197ce1dc4f8febf0a2a85e9..4719eeaf4b806b2a76f1cc02802480fa8e997f95 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';