Update of /cvsroot/srvx/services/src
In directory usw-pr-cvs1:/tmp/cvs-serv27541/src
Modified Files:
tools.c
Log Message:
unbreak ircncasecmp()
Index: tools.c
===================================================================
RCS file: /cvsroot/srvx/services/src/tools.c,v
retrieving revision 1.107
retrieving revision 1.108
diff -C2 -r1.107 -r1.108
*** tools.c 8 Jul 2002 15:19:30 -0000 1.107
--- tools.c 21 Jul 2002 02:24:47 -0000 1.108
***************
*** 111,114 ****
--- 111,115 ----
int
ircncasecmp(const unsigned char *stra, const unsigned char *strb, unsigned int len) {
+ len--;
while (*stra && (irc_tolower[*stra] == irc_tolower[*strb]) && len) stra++, strb++, len--;
return irc_tolower[*stra] - irc_tolower[*strb];
|