Changeset 125b35d for nick.c


Ignore:
Timestamp:
2006-06-25T12:17:39Z (15 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).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.