Changeset 1fc2958 for nick.c


Ignore:
Timestamp:
2006-06-16T12:07:51Z (15 years ago)
Author:
Jelmer Vernooij <jelmer@…>
Branches:
master
Children:
125b35d
Parents:
c2fa827
Message:

Add checks for nick functions as well, fix bug where nick lengths weren't
being honored.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nick.c

    rc2fa827 r1fc2958  
    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.