blob: 921c780498c149ebf00c138fa1a7a9f56c862563 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
--- src/utils.c.orig Fri May 6 16:10:28 2005
+++ src/utils.c Sun Jul 3 17:48:12 2005
@@ -24,6 +24,8 @@
on GNOME 2.0 */
#include "utils.h"
+#include <stdlib.h>
+#include <limits.h>
#include <string.h>
#include <glib/gi18n.h>
@@ -240,7 +242,7 @@ util_legible_bytes (gchar *bytes)
const gchar *unit = "B";
gchar *result;
- sscanf (bytes, "%lld", &rx);
+ rx = strtoull (bytes, (char **)NULL, 10);
short_rx = rx * 10;
if (rx > 1125899906842624ull) {
|