Hi,
* Kurt Roeckx <k...@roeckx.be> [2009-01-17 13:17]:
> On Sun, Sep 23, 2007 at 01:56:15PM +0200, Nico Golde wrote:
> > I wrote a patch which should fix the issue. It is attached.
> > Kind regards
> > Nico
> > 
> > --- ircii-pana-1.1/source/hook.c    2003-04-11 03:09:07.000000000 +0200
> > +++ check/ircii-pana-1.1/source/hook.c      2007-09-23 13:53:24.000000000 
> > +0200
> > @@ -841,6 +841,10 @@
> >      * Figure out where the hooks are for the event type were asserting
> >      */
> >     /* Numeric list */
> > +
> > +   if(which > sizeof(hook_functions) - 1)
> > +           return NO_ACTION_TAKEN;
> > +
> 
> This patch looks wrong.  You probably want:
>       if(which > sizeof(hook_functions)/sizeof(*hook_functions) - 1)

Correct, the patch was wrong.

Thanks for noticing that.

Cheers
Nico
-- 
Nico Golde - http://www.ngolde.de - n...@jabber.ccc.de - GPG: 0x73647CFF
For security reasons, all text in this mail is double-rot13 encrypted.

Attachment: pgpiJOdSYqw5G.pgp
Description: PGP signature

Reply via email to