aboutsummaryrefslogtreecommitdiff
path: root/src/inc.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2006-01-13 06:12:30 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2006-01-13 06:12:30 +0000
commit80072d1ee0161c430f44b40ad52d3038a039d364 (patch)
treef8b36d025ec73b317be44d778c2706b7be876642 /src/inc.c
parentc505586c9e396225a26f2325fdde54162ecf54bb (diff)
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
Diffstat (limited to 'src/inc.c')
-rw-r--r--src/inc.c6
1 files changed, 3 insertions, 3 deletions
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);