aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-10-12 06:00:28 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-10-12 06:00:28 +0000
commit7cc21497c1257b20c5e1818c0cd56bff14b7b7b1 (patch)
tree25e26f9bf9fa85910fa3bd2b58609ffa013e7a8e
parent079ff33bdc193105491a58a9d44140984f05105b (diff)
fixed parsing of literal data in IMAP4 response.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@636 ee746299-78ed-0310-b773-934348b2243d
-rw-r--r--ChangeLog4
-rw-r--r--ChangeLog.ja4
-rw-r--r--libsylph/imap.c2
3 files changed, 9 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 5ed7506f..8b034bdb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2005-10-12
+ * libsylph/imap.c: imap_cmd_ok(): fixed parsing of literal data.
+
+2005-10-12
+
* src/summaryview.c: brought back 'Crate filter rule' in the context
menu.
diff --git a/ChangeLog.ja b/ChangeLog.ja
index 0c22fff8..4d5f7bd9 100644
--- a/ChangeLog.ja
+++ b/ChangeLog.ja
@@ -1,5 +1,9 @@
2005-10-12
+ * libsylph/imap.c: imap_cmd_ok(): リテラルデータのパースを修正。
+
+2005-10-12
+
* src/summaryview.c: コンテキストメニューに「振り分けルールを作成」
を復活。
diff --git a/libsylph/imap.c b/libsylph/imap.c
index 92926d3e..0f75f73c 100644
--- a/libsylph/imap.c
+++ b/libsylph/imap.c
@@ -3744,7 +3744,7 @@ static gint imap_cmd_ok(IMAPSession *session, GPtrArray *argbuf)
/* literal */
p = strchr_cpy(p + 1, '}', obuf, sizeof(obuf));
len = atoi(obuf);
- if (len < 0 || p != '\0') {
+ if (len < 0 || p == NULL || *p != '\0') {
g_free(buf);
ok = IMAP_ERROR;
break;