[gaim-migrate @ 15]

Thu, 23 Mar 2000 03:44:52 +0000

author
Todd Cohen
date
Thu, 23 Mar 2000 03:44:52 +0000
changeset 6
86bd20f9543c
parent 5
1910f4b5154f
child 7
7c6b842b47e5

[gaim-migrate @ 15]
Fixed a segfault in the percentage bar code with machines such as alphas
and power pc's. Thanks to Todd Cohen for the diff on this.

committer: Rob Flynn <gaim@robflynn.com>

src/buddy.c file | annotate | diff | comparison | revisions
--- a/src/buddy.c	Thu Mar 23 03:23:41 2000 +0000
+++ b/src/buddy.c	Thu Mar 23 03:44:52 2000 +0000
@@ -190,7 +190,9 @@
 
                 
         pct = last_lag_us/100000;
-        pct = 25 * log(pct);
+
+	if (pct > 0)
+		pct = 25 * log(pct);
 
         if (pct < 0)
                 pct = 0;

mercurial