Update of /cvsroot/sphere-axis/axissvr
In directory usw-pr-cvs1:/tmp/cvs-serv25851
Modified Files:
gwhogsvr.cpp
Log Message:
Fixed checksum algorithm to ignore CR and LF chars.
Index: gwhogsvr.cpp
===================================================================
RCS file: /cvsroot/sphere-axis/axissvr/gwhogsvr.cpp,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -r1.9 -r1.10
*** gwhogsvr.cpp 6 May 2002 18:15:10 -0000 1.9
--- gwhogsvr.cpp 8 May 2002 18:33:46 -0000 1.10
***************
*** 2073,2077 ****
{
char c = szLine[i];
! linesum += (unsigned int) c;
}
chk += (linesum & line);
--- 2073,2078 ----
{
char c = szLine[i];
! if ( c != 0x0d && c != 0x0a )
! linesum += (unsigned int) c;
}
chk += (linesum & line);
|