Hi Chris, List, Thanks for pointing out the problem. Your patch is not exactly right, as you are passing now 2 times the signal value to draw_signal. But we need the speed (speed) and signal strength (r) to calculate the bar. The problem is if we can't catch the speed for a moment, the speed pointer contains NULL, and if NULL is passed to atoi(3) it cores.
I fixed it now in version 0.2. Attached the new port. Regards, Marcus On Sun, 16 Oct 2005 22:53:56 -0600 Chris Kuethe <[EMAIL PROTECTED]> wrote: > just tried with iwi. it cores. the patch below fixes it. > > --- wmwlmon.c.orig Sun Oct 16 22:53:14 2005 > +++ wmwlmon.c Sun Oct 16 22:53:18 2005 > @@ -389,7 +389,7 @@ > draw_string(sig, 12, 29); > if (strlen(sig) == 3) > draw_string(sig, 6, 29); > - draw_signal(atoi(speed), r); > + draw_signal(atoi(sig), r); > } > > /* channel */ -- Marcus Glocker, [EMAIL PROTECTED], http://www.nazgul.ch -----------------
wmwlmon-0.2.tar.gz
Description: Binary data
