Changeset 14df98f


Ignore:
Timestamp:
2011-06-11T23:22:23Z (13 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
7ceb6b2
Parents:
4bc66ae
Message:

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.)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • irc_commands.c

    r4bc66ae r14df98f  
    637637                   Jabber really doesn't like them. */
    638638                for( i = j = 0; cmd[1][i]; i ++ )
    639                         if( ( away[j] = cmd[1][i] ) >= ' ' )
     639                        if( (unsigned char) ( away[j] = cmd[1][i] ) >= ' ' )
    640640                                j ++;
    641641                away[j] = '\0';
Note: See TracChangeset for help on using the changeset viewer.