Merge pull request #286 from edk0/strip-unprintable

strip_unprintable: Don't strip all bytes with the MSB set
This commit is contained in:
Aaron Jones 2019-10-06 22:23:59 +00:00 committed by GitHub
commit 2357449084
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -109,7 +109,7 @@ strip_unprintable(char *string)
*c2++ = *c;
break;
default:
if (*c < 32)
if ((unsigned char)*c < 32)
break;
*c2++ = *c;
last_non_space = c2;