Skip to content

Commit 04a1931

Browse files
committed
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 <[email protected]> Signed-off-by: Gene Cumm <[email protected]>
1 parent 1702b0f commit 04a1931

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

com32/elflink/ldlinux/readconfig.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ static char *copy_sysappend_string(char *dst, const char *src)
330330
char c;
331331

332332
while ((c = *src++)) {
333-
if (c <= ' ' && c == '\x7f') {
333+
if (c <= ' ' || c == '\x7f') {
334334
if (!was_space)
335335
*dst++ = '_';
336336
was_space = true;

com32/menu/readconfig.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ static char *copy_sysappend_string(char *dst, const char *src)
299299
char c;
300300

301301
while ((c = *src++)) {
302-
if (c <= ' ' && c == '\x7f') {
302+
if (c <= ' ' || c == '\x7f') {
303303
if (!was_space)
304304
*dst++ = '_';
305305
was_space = true;

core/sysappend.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ static char *copy_and_mangle(char *dst, const char *src)
3535
char c;
3636

3737
while ((c = *src++)) {
38-
if (c <= ' ' && c == '\x7f') {
38+
if (c <= ' ' || c == '\x7f') {
3939
if (!was_space)
4040
*dst++ = '_';
4141
was_space = true;

0 commit comments

Comments
 (0)