[IRCServices] [NOTICE] 4.5.3 bug

Andrew Kempe andrewk at icon.co.za
Mon Feb 26 08:00:07 PST 2001


ftp.ircservices.za.net has been updated with the fixed version.

Andrew

----- Original Message -----
From: "Andrew Church" <achurch at achurch.org>
To: <ircservices at ircservices.za.net>
Sent: Monday, February 26, 2001 6:17 AM
Subject: [IRCServices] [NOTICE] 4.5.3 bug


>      4.5.3 has a bug which will cause crashes the first time ChanServ
> tries to enforce a +l mode lock.  DO NOT USE the 4.5.3 released earlier;
> if you have already downloaded it, please apply the patch included below.
> A fixed version has been uploaded to ftp.esper.net.
>
>   --Andrew Church
>     achurch at achurch.org | New address - please note.
>     http://achurch.org/ | $B%a!<%k%"%I%l%9$,JQ$o$j$^$7$?!#(B
>
> Index: chanserv.c
> ===================================================================
> RCS file: /disk1/cvs-private/ircservices/chanserv.c,v
> retrieving revision 1.65
> retrieving revision 1.66
> diff -u -r1.65 -r1.66
> --- chanserv.c 2001/02/24 00:25:58 1.65
> +++ chanserv.c 2001/02/26 04:10:02 1.66
> @@ -532,7 +532,9 @@
>   return;
>      *end = 0;
>      if (set_limit) {
> - send_cmode(MODE_SENDER(s_ChanServ), c->name, newmodes, newlimit,
> + char newlimit_str[32];
> + snprintf(newlimit_str, sizeof(newlimit_str), "%d", newlimit);
> + send_cmode(MODE_SENDER(s_ChanServ), c->name, newmodes, newlimit_str,
>      newkey ? newkey : "");
>      } else {
>   send_cmode(MODE_SENDER(s_ChanServ), c->name, newmodes,
>
> -----------------------------------------------------------
> To unsubscribe, mail ircservices-request at ircservices.za.net
> with the word UNSUBSCRIBE in the subject of the mail.
> http://www.ircservices.za.net/mailman/listinfo/ircservices
>