comparison src/util.c @ 10569:12349012610b

[gaim-migrate @ 11957] This fixes a crash for the size being > 1024 GB. committer: Tailor Script <tailor@pidgin.im>
author Daniel Atallah <daniel.atallah@gmail.com>
date Thu, 03 Feb 2005 22:36:56 +0000
parents 4f67724c207c
children 0f7452b1f777
comparison
equal deleted inserted replaced
10568:fed2a7c2471d 10569:12349012610b
2557 return g_strdup(_("Unknown.")); 2557 return g_strdup(_("Unknown."));
2558 } 2558 }
2559 else { 2559 else {
2560 size_mag = (float)size; 2560 size_mag = (float)size;
2561 2561
2562 while ((size_index < 4) && (size_mag > 1024)) { 2562 while ((size_index < 3) && (size_mag > 1024)) {
2563 size_mag /= 1024; 2563 size_mag /= 1024;
2564 size_index++; 2564 size_index++;
2565 } 2565 }
2566 2566
2567 if (size_index == 0) { 2567 if (size_index == 0) {