Skip to content

Commit

Permalink
com32 readconfig: use my_isspace()
Browse files Browse the repository at this point in the history
More consistent.  Also ensures it's properly recast.

Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
  • Loading branch information
geneC committed Jul 18, 2015
1 parent 1217fc7 commit f3f6971
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion com32/elflink/ldlinux/readconfig.c
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion com32/menu/readconfig.c
Expand Up @@ -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;
Expand Down

0 comments on commit f3f6971

Please sign in to comment.