Bug fix ?
McWilliams, Gary
gmcwilliams____cccnetsys.com
Tue Jun 27 18:39:25 CEST 2000
Frank,
I informed you of a bug in log.h some time ago. I have just checked the 3.4c
code and see that it has not been applied.
void set_filter(int logclass, unsigned char filter)
{ if (filter<16) logfilter[(logclass/16)-1] = filter; }
Needs to be changed to
void set_filter(int logclass, unsigned char filter)
//{ if (filter<16) logfilter[logclass] = filter; }
{
if ( filter < 16 )
{
int idx = (logclass / 16) - 1 ;
if ( idx >= 0 && idx < LOG_TYPES )
{
logfilter[idx] = filter ;
}
}
}
--
Gary McWilliams
Principal Engineer
CCC Network Systems Ltd, R&D facility Belfast
http://www.cccnetsys.com
More information about the AGENTPP
mailing list