evolution-data-server r8763 - trunk/camel/providers/imap4



Author: fejj
Date: Wed May  7 03:07:24 2008
New Revision: 8763
URL: http://svn.gnome.org/viewvc/evolution-data-server?rev=8763&view=rev

Log:
2008-05-06  Jeffrey Stedfast  <fejj novell com>

	* camel-imap4-stream.c (camel_imap4_stream_next_token): Keep track
	of start of literal token.



Modified:
   trunk/camel/providers/imap4/ChangeLog
   trunk/camel/providers/imap4/camel-imap4-stream.c

Modified: trunk/camel/providers/imap4/camel-imap4-stream.c
==============================================================================
--- trunk/camel/providers/imap4/camel-imap4-stream.c	(original)
+++ trunk/camel/providers/imap4/camel-imap4-stream.c	Wed May  7 03:07:24 2008
@@ -458,7 +458,10 @@
 						g_warning ("illegal token following literal identifier: %s", inptr);
 						
 						/* skip ahead to the eoln */
-						inptr = strchr (inptr, '\n');
+						if (!(inptr = strchr (inptr, '\n'))) {
+							stream->inptr = start;
+							goto refill;
+						}
 					}
 					
 					/* skip over '\n' */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]