diff options
author | Dany St-Amant <dany.ephemeral.2014@icloud.com> | 2014-11-28 13:48:32 -0500 |
---|---|---|
committer | Gene Cumm <gene.cumm@gmail.com> | 2015-01-05 20:43:13 -0500 |
commit | 3106dcd19061b4443c5beba4f0e09412e8d37fbe (patch) | |
tree | f8a1a2fbf24c2b98a12a2d6222a4c5c44a2ac513 | |
parent | be645d7a9848847388a662f6c0f7571d52ed7a05 (diff) | |
download | syslinux-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>
-rw-r--r-- | com32/elflink/ldlinux/readconfig.c | 2 | ||||
-rw-r--r-- | com32/menu/readconfig.c | 2 | ||||
-rw-r--r-- | core/sysappend.c | 2 |
3 files changed, 3 insertions, 3 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; diff --git a/com32/menu/readconfig.c b/com32/menu/readconfig.c index b7814be2..257b0425 100644 --- a/com32/menu/readconfig.c +++ b/com32/menu/readconfig.c @@ -299,7 +299,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; diff --git a/core/sysappend.c b/core/sysappend.c index 5c3f650d..758703ea 100644 --- a/core/sysappend.c +++ b/core/sysappend.c @@ -35,7 +35,7 @@ static char *copy_and_mangle(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; |