[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Tlf-devel] tlf segfault
From: |
Rein Couperus |
Subject: |
Re: [Tlf-devel] tlf segfault |
Date: |
Mon, 05 Oct 2009 15:02:18 +0200 |
Tnx Tom,
I will include the patch and release it this week.
73,
Rein PA0R
> -----Ursprüngliche Nachricht-----
> Von: "Thomas Beierlein" <address@hidden>
> Gesendet: 05.10.09 15:00:50
> An: address@hidden
> Betreff: [Tlf-devel] tlf segfault
> Hi,
>
> Tlf segfaults immediately after start on some machines here if started
> with 'tlf -n' and if SPOTLIST is activated in logcfg.dat (as installed by
> default as example).
>
> Found the reason in cluster_bg.c where in case of an empty spotlist tlf uses
> some negative indexes for array access (around lines 460..490) . Bummer!
>
> The following diff fixes the problem. I hope Rein can integrate the patch
> soon
> and release a fixed version.
>
> 73, de Tom DL1JBE
>
> Patch follows here:
>
> --- src/cluster_bg.c.orig 2009-10-03 09:14:28.000000000 +0200
> +++ src/cluster_bg.c 2009-10-02 08:25:40.000000000 +0200
> @@ -463,7 +463,10 @@
> for (j=15; j < 23; j++)
> mvprintw(j,4, " ");
>
> -if (cluster == SPOTS) linepos = i - 8;
> +if (cluster == SPOTS){
> + linepos = i - 8;
> + if (linepos < 0) linepos = 0;
> +}
> else linepos = 0;
>
>
> --
> "Do what is needful!"
> Ursula LeGuin: Earthsea
> --
>
>
>
> _______________________________________________
> Tlf-devel mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/tlf-devel
>
--
http://pa0r.blogspirit.com