[IRCServices Coding] segmentation faults - ircservices 5.0a26

Romek Krisztián r-krisztian at softhome.net
Mon Apr 1 03:20:40 PST 2002


This patch is working! Thx!

AngryWolf

----- Original Message -----
From: Andrew Church <achurch at achurch.org>
To: <ircservices-coding at ircservices.za.net>
Sent: Monday, April 01, 2002 8:41 AM
Subject: Re: [IRCServices Coding] segmentation faults - ircservices 5.0a26


> >>      Fixed, thanks.
> >
> >That's good but I would like to have the next release. Can you tell me
when
> >will it be downloadable? Thank you!
>
>      When I release a new alpha, whenever that is.  In the meantime, apply
> this patch:
>
> --- misc.c 27 Mar 2002 12:28:25 -0000 2.17
> +++ misc.c 1 Apr 2002 02:28:15 -0000 2.18
> @@ -213,8 +213,10 @@
>  char *strtok_remaining(void)
>  {
>      char *s = strtok(NULL, "");
> -    while (isspace(*s))
> - s++;
> +    if (s) {
> + while (isspace(*s))
> +     s++;
> +    }
>      return s;
>  }
>
>
>   --Andrew Church
>     achurch at achurch.org
>     http://achurch.org/
> ------------------------------------------------------------------
> To unsubscribe or change your subscription options, visit:
> http://www.ircservices.za.net/mailman/listinfo/ircservices-coding