From f2493d0c45b0e2c12795a1f12ccd92f6f347f2f5 Mon Sep 17 00:00:00 2001 From: hiro Date: Mon, 14 Nov 2005 08:07:48 +0000 Subject: prevent integer overflow on summary status. git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@742 ee746299-78ed-0310-b773-934348b2243d --- libsylph/utils.c | 2 +- libsylph/utils.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'libsylph') diff --git a/libsylph/utils.c b/libsylph/utils.c index 18612eaa..0cb484f0 100644 --- a/libsylph/utils.c +++ b/libsylph/utils.c @@ -267,7 +267,7 @@ gchar *itos(gint n) return itos_buf(nstr, n); } -gchar *to_human_readable(off_t size) +gchar *to_human_readable(gint64 size) { static gchar str[10]; diff --git a/libsylph/utils.h b/libsylph/utils.h index 8ef85896..b5cb3a76 100644 --- a/libsylph/utils.h +++ b/libsylph/utils.h @@ -213,7 +213,7 @@ gint to_number (const gchar *nstr); gchar *itos_buf (gchar *nstr, gint n); gchar *itos (gint n); -gchar *to_human_readable (off_t size); +gchar *to_human_readable (gint64 size); /* alternative string functions */ gint strcmp2 (const gchar *s1, -- cgit v1.2.3