From 14df98f1f4da171b728a87b6c6976844055b4a58 Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Sun, 12 Jun 2011 00:22:23 +0100 Subject: 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.) --- irc_commands.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'irc_commands.c') 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'; -- cgit v1.2.3