Fix strip_unprintable on high bit bytes
This commit is contained in:
parent
a5c6d66ac8
commit
9dcb9e1696
1 changed files with 3 additions and 3 deletions
|
@ -83,9 +83,9 @@ strip_colour(char *string)
|
||||||
static inline char *
|
static inline char *
|
||||||
strip_unprintable(char *string)
|
strip_unprintable(char *string)
|
||||||
{
|
{
|
||||||
char *c = string;
|
unsigned char *c = (unsigned char *)string;
|
||||||
char *c2 = string;
|
unsigned char *c2 = (unsigned char *)string;
|
||||||
char *last_non_space = NULL;
|
unsigned char *last_non_space = NULL;
|
||||||
|
|
||||||
/* c is source, c2 is target */
|
/* c is source, c2 is target */
|
||||||
for(; c && *c; c++)
|
for(; c && *c; c++)
|
||||||
|
|
Loading…
Reference in a new issue