[syslog-ng]Syslog 1.4.12, Solaris 8-x86: Too few arguments...

Sander de Boer boeraa@yahoo.com
Mon, 16 Jul 2001 23:10:40 -0700 (PDT)


Thanks....works perfectly.

Sander

--- Balazs Scheidler <bazsi@balabit.hu> wrote:
> try this patch:
> 
> diff -u -r1.10.2.1 afstreams.c
> --- afstreams.c 2001/02/25 12:30:22     1.10.2.1
> +++ afstreams.c 2001/07/16 08:26:55
> @@ -164,7 +164,7 @@
>  {
>         NEW(stream_fd, f);
> 
> -       init_file(backend, &f->super, fd);
> +       init_file(backend, &f->super, fd, NULL);
>         f->super.prepare = prepare_stream_fd;
>         f->super.read = stream_read_callback;
>         f->super.want_read = 1;
> 

<snip> 

> 
> as it seems the isdigit() implementation uses an
> array to decide whether a
> character is digit or not. The problem might be if
> character is above 127,
> in which case the array is indexed with a negative
> value. Try this patch:
> 
> diff -u -r1.19.4.3 log.c
> --- log.c       2001/06/11 07:44:55     1.19.4.3
> +++ log.c       2001/07/16 08:28:02
> @@ -40,7 +40,7 @@
> 
>  static void parse_log_msg(struct log_info *lm,
> UINT32 length, UINT8 *data)
>  {
> -       char *src;
> +       unsigned char *src;
>         int left;
>         int pri;
>         time_t now = time(NULL);
> 
> 
> -- 
> Bazsi
> PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C
> 0944 9CFD 804E C82C 8EB1
> 
> _______________________________________________
> syslog-ng maillist  -  syslog-ng@lists.balabit.hu
> https://lists.balabit.hu/mailman/listinfo/syslog-ng
> 
> 
> 


__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/