Fix strip_unprintable on high bit bytes

This commit is contained in:
Ed Kellett 2018-09-25 12:48:22 +01:00
parent a5c6d66ac8
commit 9dcb9e1696
No known key found for this signature in database
GPG Key ID: CB9986DEF342FABC
1 changed files with 3 additions and 3 deletions

View File

@ -83,9 +83,9 @@ strip_colour(char *string)
static inline char *
strip_unprintable(char *string)
{
char *c = string;
char *c2 = string;
char *last_non_space = NULL;
unsigned char *c = (unsigned char *)string;
unsigned char *c2 = (unsigned char *)string;
unsigned char *last_non_space = NULL;
/* c is source, c2 is target */
for(; c && *c; c++)