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



commit fab726129d715553efe64abc2372b48bb783083a
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 12e0ccc..bae92e2 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]