Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Dec 1999 16:53:14 -0500 (EST)
From:      Vivek Khera <khera@kciLink.com>
To:        freebsd-ports@freebsd.org, jimduchek@ou.edu
Subject:   patch to gaim 0.9.10 port for FreeBSD 3.4-RC
Message-ID:  <14422.48202.807583.537595@onceler.kcilink.com>

next in thread | raw e-mail | index | archive | help
The port of gaim 0.9.10 to FreeBSD-stable from cvsup earlier today
crashes with a SIGFPE error a few seconds after startup.  I traced it
down to a call to log(x) where x=0.  The following patch corrects this
problem:

*** #buddy.c~	Tue Dec 14 16:42:14 1999
--- src/buddy.c	Tue Dec 14 16:42:14 1999
***************
*** 202,208 ****
  
                  
          pct = last_lag_us/100000;
!         pct = 25 * log(pct);
  
          if (pct < 0)
                  pct = 0;
--- 202,208 ----
  
                  
          pct = last_lag_us/100000;
!         pct = 25 * log(pct+1.0);
  
          if (pct < 0)
                  pct = 0;

Curiously, this problem did not affect Linux nor BSD/OS 4.0.1, only
FreeBSD-stable.

Thanks!

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Vivek Khera, Ph.D.                Khera Communications, Inc.
Internet: khera@kciLink.com       Rockville, MD       +1-301-545-6996
PGP & MIME spoken here            http://www.kciLink.com/home/khera/


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?14422.48202.807583.537595>