diff options
author | Gene Cumm <gene.cumm@gmail.com> | 2015-07-18 12:10:48 -0400 |
---|---|---|
committer | Gene Cumm <gene.cumm@gmail.com> | 2015-07-18 12:10:48 -0400 |
commit | f3f6971432d07849ec97641b113d4a146c464e78 (patch) | |
tree | 6cb2fc6d672ed8fca7e615e16070b16be700d80a | |
parent | 1217fc781a213cf8628a5e72618a496dd71436e1 (diff) | |
download | syslinux-f3f6971432d07849ec97641b113d4a146c464e78.tar.gz syslinux-f3f6971432d07849ec97641b113d4a146c464e78.tar.xz syslinux-f3f6971432d07849ec97641b113d4a146c464e78.zip |
com32 readconfig: use my_isspace()
More consistent. Also ensures it's properly recast.
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 |
2 files changed, 2 insertions, 2 deletions
diff --git a/com32/elflink/ldlinux/readconfig.c b/com32/elflink/ldlinux/readconfig.c index 381b43ff..3d6aa27e 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 (my_isspace(c)) { if (!was_space) *dst++ = '_'; was_space = true; diff --git a/com32/menu/readconfig.c b/com32/menu/readconfig.c index 257b0425..a433fadb 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 (my_isspace(c)) { if (!was_space) *dst++ = '_'; was_space = true; |