[srvx-commits] CVS: services/src chanserv.c,1.335,1.336
Brought to you by:
entrope
|
From: Zoot <zo...@us...> - 2003-01-31 21:52:32
|
Update of /cvsroot/srvx/services/src
In directory sc8-pr-cvs1:/tmp/cvs-serv10697/src
Modified Files:
chanserv.c
Log Message:
Limit the length of the events search glob.
Index: chanserv.c
===================================================================
RCS file: /cvsroot/srvx/services/src/chanserv.c,v
retrieving revision 1.335
retrieving revision 1.336
diff -C2 -r1.335 -r1.336
*** chanserv.c 31 Jan 2003 21:49:23 -0000 1.335
--- chanserv.c 31 Jan 2003 21:52:29 -0000 1.336
***************
*** 4667,4676 ****
if(argc > 2)
{
! sprintf(glob, "(%s)*%s", channel->name, argv[2]);
}
else
{
! sprintf(glob, "(%s)*", channel->name);
}
return chanserv_events(user, limit, glob, "channel events");
--- 4667,4677 ----
if(argc > 2)
{
! snprintf(glob, MAXLEN, "(%s)*%s", channel->name, argv[2]);
}
else
{
! snprintf(glob, MAXLEN, "(%s)*", channel->name);
}
+ glob[MAXLEN - 1] = 0;
return chanserv_events(user, limit, glob, "channel events");
|