Merge pull request #286 from edk0/strip-unprintable
strip_unprintable: Don't strip all bytes with the MSB set
This commit is contained in:
commit
2357449084
1 changed files with 1 additions and 1 deletions
|
@ -109,7 +109,7 @@ strip_unprintable(char *string)
|
||||||
*c2++ = *c;
|
*c2++ = *c;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
if (*c < 32)
|
if ((unsigned char)*c < 32)
|
||||||
break;
|
break;
|
||||||
*c2++ = *c;
|
*c2++ = *c;
|
||||||
last_non_space = c2;
|
last_non_space = c2;
|
||||||
|
|
Loading…
Reference in a new issue