diff options
author | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2006-01-18 13:46:05 +0800 |
---|---|---|
committer | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2006-01-18 13:46:05 +0800 |
commit | 84a6e70e9b670c1fd3e860c8aa0654620389339d (patch) | |
tree | 88238c9800508218001dd8c97999ab9e7b500a4d /net/gnome-nettool/files/patch-src_utils.c | |
parent | a6ed17ed17d3b5a0556232f5c480372ad4f53434 (diff) | |
download | marcuscom-ports-84a6e70e9b670c1fd3e860c8aa0654620389339d.tar.gz marcuscom-ports-84a6e70e9b670c1fd3e860c8aa0654620389339d.tar.zst marcuscom-ports-84a6e70e9b670c1fd3e860c8aa0654620389339d.zip |
Update to 2.13.5.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@5433 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'net/gnome-nettool/files/patch-src_utils.c')
-rw-r--r-- | net/gnome-nettool/files/patch-src_utils.c | 20 |
1 files changed, 20 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 000000000..921c78049 --- /dev/null +++ b/net/gnome-nettool/files/patch-src_utils.c @@ -0,0 +1,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) { |