[gaim-migrate @ 11957]

Thu, 03 Feb 2005 22:36:56 +0000

author
Daniel Atallah <datallah@pidgin.im>
date
Thu, 03 Feb 2005 22:36:56 +0000
changeset 10569
3324f62c07aa
parent 10568
15f02c0e7fc1
child 10570
54b00f6b9147

[gaim-migrate @ 11957]
This fixes a crash for the size being > 1024 GB.

src/util.c file | annotate | diff | comparison | revisions
--- a/src/util.c	Thu Feb 03 19:47:52 2005 +0000
+++ b/src/util.c	Thu Feb 03 22:36:56 2005 +0000
@@ -2559,7 +2559,7 @@
 	else {
 		size_mag = (float)size;
 
-		while ((size_index < 4) && (size_mag > 1024)) {
+		while ((size_index < 3) && (size_mag > 1024)) {
 			size_mag /= 1024;
 			size_index++;
 		}

mercurial