aboutsummaryrefslogtreecommitdiffstats
path: root/com32/elflink
diff options
context:
space:
mode:
authorDany St-Amant <dany.ephemeral.2014@icloud.com>2014-11-28 13:48:32 -0500
committerGene Cumm <gene.cumm@gmail.com>2015-01-05 20:43:13 -0500
commit3106dcd19061b4443c5beba4f0e09412e8d37fbe (patch)
treef8a1a2fbf24c2b98a12a2d6222a4c5c44a2ac513 /com32/elflink
parentbe645d7a9848847388a662f6c0f7571d52ed7a05 (diff)
downloadsyslinux-3106dcd19061b4443c5beba4f0e09412e8d37fbe.tar.gz
syslinux-3106dcd19061b4443c5beba4f0e09412e8d37fbe.tar.xz
syslinux-3106dcd19061b4443c5beba4f0e09412e8d37fbe.zip
SYSAPPEND: Fix space stripping
The description of SYSAPPEND for the DMI information states that the spaces are replaced by underscores, but this replacement does not occur in 6.03. Signed-off-by: Dany St-Amant <dany.ephemeral.2014@icloud.com> Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
Diffstat (limited to 'com32/elflink')
-rw-r--r--com32/elflink/ldlinux/readconfig.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/com32/elflink/ldlinux/readconfig.c b/com32/elflink/ldlinux/readconfig.c
index 347f8264..24f1cc94 100644
--- a/com32/elflink/ldlinux/readconfig.c
+++ b/com32/elflink/ldlinux/readconfig.c
@@ -330,7 +330,7 @@ static char *copy_sysappend_string(char *dst, const char *src)
char c;
while ((c = *src++)) {
- if (c <= ' ' && c == '\x7f') {
+ if (c <= ' ' || c == '\x7f') {
if (!was_space)
*dst++ = '_';
was_space = true;