From: Yu Watanabe Date: Sun, 25 Nov 2018 21:43:33 +0000 (+0900) Subject: sd-boot: fix trailing whitespace trimming X-Git-Tag: v240~222^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d949c467b8741fec1ee89b95f5e565e859b345f5;p=thirdparty%2Fsystemd.git sd-boot: fix trailing whitespace trimming Fixes #10922. --- diff --git a/src/boot/efi/boot.c b/src/boot/efi/boot.c index d3a26fd7a0e..4719eeaf4b8 100644 --- a/src/boot/efi/boot.c +++ b/src/boot/efi/boot.c @@ -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';