Changes in nick.c [46511b3:6b13103]
Legend:
- Unmodified
- Added
- Removed
-
nick.c
r46511b3 r6b13103 20 20 You should have received a copy of the GNU General Public License with 21 21 the Debian GNU/Linux distribution in /usr/share/common-licenses/GPL; 22 if not, write to the Free Software Foundation, Inc., 5 9 Temple Place,23 Suite 330, Boston, MA 02111-1307USA22 if not, write to the Free Software Foundation, Inc., 51 Franklin St., 23 Fifth Floor, Boston, MA 02110-1301 USA 24 24 */ 25 25 … … 41 41 do { 42 42 if (*orig != ' ') 43 new[i++] = tolower( *orig );43 new[i++] = g_ascii_tolower( *orig ); 44 44 } 45 45 while (*(orig++)); … … 144 144 fmt += 2; 145 145 } 146 else if( isdigit( *fmt ) )146 else if( g_ascii_isdigit( *fmt ) ) 147 147 { 148 148 len = 0; 149 149 /* Grab a number. */ 150 while( isdigit( *fmt ) )150 while( g_ascii_isdigit( *fmt ) ) 151 151 len = len * 10 + ( *(fmt++) - '0' ); 152 152 } … … 331 331 } 332 332 } 333 if( isdigit( nick[0] ) )333 if( g_ascii_isdigit( nick[0] ) ) 334 334 { 335 335 char *orig; … … 351 351 352 352 /* Empty/long nicks are not allowed, nor numbers at [0] */ 353 if( !*nick || isdigit( nick[0] ) || strlen( nick ) > MAX_NICK_LENGTH )353 if( !*nick || g_ascii_isdigit( nick[0] ) || strlen( nick ) > MAX_NICK_LENGTH ) 354 354 return 0; 355 355
Note: See TracChangeset
for help on using the changeset viewer.