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 /libsylph/imap.c | |
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
Diffstat (limited to 'libsylph/imap.c')
-rw-r--r-- | libsylph/imap.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |