diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-10-12 06:00:28 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-10-12 06:00:28 +0000 |
commit | 7cc21497c1257b20c5e1818c0cd56bff14b7b7b1 (patch) | |
tree | 25e26f9bf9fa85910fa3bd2b58609ffa013e7a8e | |
parent | 079ff33bdc193105491a58a9d44140984f05105b (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-- | ChangeLog | 4 | ||||
-rw-r--r-- | ChangeLog.ja | 4 | ||||
-rw-r--r-- | libsylph/imap.c | 2 |
3 files changed, 9 insertions, 1 deletions
@@ -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; |