aboutsummaryrefslogtreecommitdiffstats
path: root/net/gnome-nettool/files/patch-src_utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/gnome-nettool/files/patch-src_utils.c')
-rw-r--r--net/gnome-nettool/files/patch-src_utils.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/net/gnome-nettool/files/patch-src_utils.c b/net/gnome-nettool/files/patch-src_utils.c
new file mode 100644
index 000000000000..0c8111ade4bf
--- /dev/null
+++ b/net/gnome-nettool/files/patch-src_utils.c
@@ -0,0 +1,11 @@
+--- src/utils.c.orig Sun Jul 4 20:11:49 2004
++++ src/utils.c Sun Jul 4 20:12:14 2004
+@@ -240,7 +240,7 @@
+ const gchar *unit = "B";
+ gchar *result;
+
+- sscanf (bytes, "%lld", &rx);
++ rx = strtoull (bytes, (char **)NULL, 10);
+ short_rx = rx * 10;
+
+ if (rx > 1125899906842624ull) {