diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2011-06-12 00:22:23 +0100 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2011-06-12 00:22:23 +0100 |
commit | 14df98f1f4da171b728a87b6c6976844055b4a58 (patch) | |
tree | 1ed0234144a2ee353555655c80cca6e476e54090 | |
parent | 4bc66aeeacdc5c585a5816ef8aafffb787b05262 (diff) |
Aaaaaargh! Who thought it'd be a good idea to make 8-bit integers signed??
NOW? WHO? Anyway, this bug was causing not only chars < ' ' to be stripped,
but also anything with the highest bit set. (I.e. anything non-ASCII.)
-rw-r--r-- | irc_commands.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/irc_commands.c b/irc_commands.c index cf41d323..a1933fa6 100644 --- a/irc_commands.c +++ b/irc_commands.c @@ -636,7 +636,7 @@ static void irc_cmd_away( irc_t *irc, char **cmd ) /* Copy away string, but skip control chars. Mainly because Jabber really doesn't like them. */ for( i = j = 0; cmd[1][i]; i ++ ) - if( ( away[j] = cmd[1][i] ) >= ' ' ) + if( (unsigned char) ( away[j] = cmd[1][i] ) >= ' ' ) j ++; away[j] = '\0'; |