summaryrefslogtreecommitdiff
path: root/src/boot/efi
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2018-11-26 06:43:33 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2018-11-26 06:43:36 +0900
commitd949c467b8741fec1ee89b95f5e565e859b345f5 (patch)
tree9cb08cf2bc3272c422af64ad2ce2c60c58357fe7 /src/boot/efi
parente9c026c2bf787c412cf71e1c53f5dccb8e5cff80 (diff)
downloadsystemd-d949c467b8741fec1ee89b95f5e565e859b345f5.tar.gz
sd-boot: fix trailing whitespace trimming
Fixes #10922.
Diffstat (limited to 'src/boot/efi')
-rw-r--r--src/boot/efi/boot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/boot/efi/boot.c b/src/boot/efi/boot.c
index d3a26fd7a0..4719eeaf4b 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';