From 80072d1ee0161c430f44b40ad52d3038a039d364 Mon Sep 17 00:00:00 2001 From: hiro Date: Fri, 13 Jan 2006 06:12:30 +0000 Subject: fixed 32-bit integer overflow where the total size of POP3 messages is greater than 2GB. git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@895 ee746299-78ed-0310-b773-934348b2243d --- src/inc.c | 6 +++--- src/inc.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/inc.c b/src/inc.c index 4afbb25c..4b14c194 100644 --- a/src/inc.c +++ b/src/inc.c @@ -842,8 +842,8 @@ static void inc_progress_dialog_set_progress(IncProgressDialog *inc_dialog, gchar buf[MSGBUFSIZE]; Pop3Session *pop3_session = POP3_SESSION(inc_session->session); gchar *total_size_str; - gint cur_total; - gint total; + gint64 cur_total; + gint64 total; if (!pop3_session->new_msg_exist) return; @@ -954,7 +954,7 @@ static gint inc_recv_data_progressive(Session *session, guint cur_len, IncSession *inc_session = (IncSession *)data; Pop3Session *pop3_session = POP3_SESSION(session); IncProgressDialog *inc_dialog; - gint cur_total; + gint64 cur_total; g_return_val_if_fail(inc_session != NULL, -1); diff --git a/src/inc.h b/src/inc.h index 090dbcaf..80a1bc4e 100644 --- a/src/inc.h +++ b/src/inc.h @@ -73,7 +73,7 @@ struct _IncSession GHashTable *folder_table; /* table of destination folders */ GHashTable *tmp_folder_table; /* for progressive update */ - gint cur_total_bytes; + gint64 cur_total_bytes; gpointer data; }; -- cgit v1.2.3