aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@novell.com>2004-11-03 03:19:27 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2004-11-03 03:19:27 +0800
commit25f5d224cc174f5c8eea3651034841e051668caf (patch)
tree2a381d5c014340cadfb361257579151d03a7a107
parent1f36b6217d5cc602a6f1e0821531b8d613a69016 (diff)
downloadgsoc2013-evolution-25f5d224cc174f5c8eea3651034841e051668caf.tar.gz
gsoc2013-evolution-25f5d224cc174f5c8eea3651034841e051668caf.tar.zst
gsoc2013-evolution-25f5d224cc174f5c8eea3651034841e051668caf.zip
Update stream->inptr after fetching the literal chunk.
2004-11-02 Jeffrey Stedfast <fejj@novell.com> * providers/imap4/camel-imap4-stream.c (camel_imap4_stream_literal): Update stream->inptr after fetching the literal chunk. svn path=/trunk/; revision=27800
-rw-r--r--camel/ChangeLog4
-rw-r--r--camel/providers/imap4/camel-imap4-stream.c2
2 files changed, 6 insertions, 0 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index 01c00dc096..6422ecd063 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -1,5 +1,9 @@
2004-11-02 Jeffrey Stedfast <fejj@novell.com>
+ * providers/imap4/camel-imap4-stream.c
+ (camel_imap4_stream_literal): Update stream->inptr after fetching
+ the literal chunk.
+
* providers/imap4/camel-imap4-summary.c (envelope_decode_address):
Do proper cleanup in case of error and also handle literals.
diff --git a/camel/providers/imap4/camel-imap4-stream.c b/camel/providers/imap4/camel-imap4-stream.c
index 629a86f7d8..42100b04de 100644
--- a/camel/providers/imap4/camel-imap4-stream.c
+++ b/camel/providers/imap4/camel-imap4-stream.c
@@ -710,6 +710,8 @@ camel_imap4_stream_literal (CamelIMAP4Stream *stream, unsigned char **literal, s
*len = nread = inend - inptr;
stream->literal -= nread;
+ stream->inptr += nread;
+
if (stream->literal == 0) {
stream->mode = CAMEL_IMAP4_STREAM_MODE_TOKEN;
stream->eol = TRUE;