Changeset 125b35d


Ignore:
Timestamp:
2006-06-25T12:17:39Z (18 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
4b1a75a
Parents:
59f5c42a (diff), 1fc2958 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merging from Jelmer (this adds some basic unit testing code).

Files:
4 added
4 edited

Legend:

Unmodified
Added
Removed
  • .bzrignore

    r59f5c42a r125b35d  
    1212bitlbee.pc
    1313.gdb_history
     14tests/check
  • Makefile

    r59f5c42a r125b35d  
    4444        rm -f Makefile.settings config.h
    4545        find . -name 'DEADJOE' -o -name '*.orig' -o -name '*.rej' -o -name '*~' -exec rm -f {} \;
     46
     47check:
     48        $(MAKE) -C tests
    4649
    4750install-doc:
  • irc_commands.c

    r59f5c42a r125b35d  
    321321{
    322322        user_t *u;
    323         char buff[IRC_MAX_LINE], *s;
     323        char buff[IRC_MAX_LINE];
    324324        int lenleft, i;
    325325       
  • nick.c

    r59f5c42a r125b35d  
    163163        int i, j;
    164164       
    165         for( i = j = 0; nick[i] && i < MAX_NICK_LENGTH; i++ )
     165        for( i = j = 0; nick[i] && j < MAX_NICK_LENGTH; i++ )
    166166        {
    167167                if( strchr( nick_lc_chars, nick[i] ) ||
     
    172172                }
    173173        }
    174         while( j < MAX_NICK_LENGTH )
     174        while( j <= MAX_NICK_LENGTH )
    175175                nick[j++] = '\0';
    176176}
Note: See TracChangeset for help on using the changeset viewer.