aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--ChangeLog.ja5
-rw-r--r--libsylph/session.c4
3 files changed, 12 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 6ad9141a..1c6ae529 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-11-25
+
+ * libsylph/session.c: session_recv_data_as_file_idle_cb(): fixed a bug
+ that lost first part of message data.
+
2005-11-24
* libsylph/procmime.c: procmime_decode_content(): win32: don't
diff --git a/ChangeLog.ja b/ChangeLog.ja
index f7db97ee..9c5ea588 100644
--- a/ChangeLog.ja
+++ b/ChangeLog.ja
@@ -1,3 +1,8 @@
+2005-11-25
+
+ * libsylph/session.c: session_recv_data_as_file_idle_cb(): メッセージ
+ データの先頭部分を失うバグを修正。
+
2005-11-24
* libsylph/procmime.c: procmime_decode_content(): win32: テキスト
diff --git a/libsylph/session.c b/libsylph/session.c
index 1ded2ee6..77209c96 100644
--- a/libsylph/session.c
+++ b/libsylph/session.c
@@ -485,7 +485,7 @@ static gboolean session_recv_data_as_file_idle_cb(gpointer data)
Session *session = SESSION(data);
gboolean ret;
- ret = session_read_data_cb(session->sock, G_IO_IN, session);
+ ret = session_read_data_as_file_cb(session->sock, G_IO_IN, session);
if (ret == TRUE)
session->io_tag = sock_add_watch(session->sock, G_IO_IN,
@@ -708,7 +708,7 @@ static gboolean session_read_data_as_file_cb(SockInfo *source,
session_set_timeout(session, session->timeout_interval);
- if (session->read_buf_len != 0)
+ if (session->read_buf_len > 0)
g_print("already read %d bytes\n", session->read_buf_len);
if (session->read_buf_len == 0) {