stringops: Don't strip unicode in strip_unprintable

This commit is contained in:
Andrew Cook 2014-01-15 00:18:10 +11:00 committed by Sam Dodrill
parent 02b334ff8f
commit b781b52396
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ strip_unprintable(char *string)
*c2++ = *c;
break;
default:
if (*c < 32)
if (*c < 32 && *c >= 0)
break;
*c2++ = *c;
last_non_space = c2;