# HG changeset patch # User Todd Cohen # Date 953783092 0 # Node ID 86bd20f9543cb4cbd132d166fbe704f1f62fd3c7 # Parent 1910f4b5154f21a24c852af0219b04aa0238a488 [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 diff -r 1910f4b5154f -r 86bd20f9543c src/buddy.c --- 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;