diff options
-rw-r--r-- | camel/ChangeLog | 5 | ||||
-rw-r--r-- | camel/camel-stream-buffer.c | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog index 13651db646..d2ceff25cc 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,3 +1,8 @@ +2004-06-18 Jeffrey Stedfast <fejj@novell.com> + + * camel-stream-buffer.c (set_vbuf): Need to re-init sbf->ptr and + sbf->end too, or we'll be sorrryy! + 2004-06-18 Not Zed <NotZed@Ximian.com> * camel-exception.h (CAMEL_EXCEPTION_INITIALISER): setup for diff --git a/camel/camel-stream-buffer.c b/camel/camel-stream-buffer.c index 5db1c124f5..01880216b2 100644 --- a/camel/camel-stream-buffer.c +++ b/camel/camel-stream-buffer.c @@ -131,6 +131,9 @@ set_vbuf(CamelStreamBuffer *sbf, char *buf, CamelStreamBufferMode mode, int size sbf->buf = g_malloc(size); sbf->flags &= ~BUF_USER; } + + sbf->ptr = sbf->buf; + sbf->end = sbf->buf; sbf->size = size; sbf->mode = mode; } |