[evolution-data-server] Bug 629726 - Increase imapx starting buffer size to 4KiB



commit a340ab47edc3e39494d845e39854ce86849327c9
Author: David Woodhouse <David Woodhouse intel com>
Date:   Wed Sep 15 01:20:24 2010 +0100

    Bug 629726 - Increase imapx starting buffer size to 4KiB
    
    It was temporarily set to 4 bytes to stress-test the buffer reallocation code.

 camel/providers/imapx/camel-imapx-stream.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/camel/providers/imapx/camel-imapx-stream.c b/camel/providers/imapx/camel-imapx-stream.c
index 74300dc..7af7f96 100644
--- a/camel/providers/imapx/camel-imapx-stream.c
+++ b/camel/providers/imapx/camel-imapx-stream.c
@@ -204,7 +204,7 @@ static void
 camel_imapx_stream_init (CamelIMAPXStream *is)
 {
 	/* +1 is room for appending a 0 if we need to for a token */
-	is->bufsize = 4;
+	is->bufsize = 4096;
 	is->ptr = is->end = is->buf = g_malloc (is->bufsize + 1);
 	is->tokenbuf = g_malloc (is->bufsize + 1);
 }



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