diff options
author | Jeffrey Stedfast <fejj@novell.com> | 2004-06-19 02:13:22 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2004-06-19 02:13:22 +0800 |
commit | e8db8d9ce41e7d25ab8f7e04b069470eefd0c274 (patch) | |
tree | 67e954cd5556911b27c4817d16e2ac5db620c200 | |
parent | 576fae30db63ea0e6f2194bd5d77a820b86b08c0 (diff) | |
download | gsoc2013-evolution-e8db8d9ce41e7d25ab8f7e04b069470eefd0c274.tar gsoc2013-evolution-e8db8d9ce41e7d25ab8f7e04b069470eefd0c274.tar.gz gsoc2013-evolution-e8db8d9ce41e7d25ab8f7e04b069470eefd0c274.tar.bz2 gsoc2013-evolution-e8db8d9ce41e7d25ab8f7e04b069470eefd0c274.tar.lz gsoc2013-evolution-e8db8d9ce41e7d25ab8f7e04b069470eefd0c274.tar.xz gsoc2013-evolution-e8db8d9ce41e7d25ab8f7e04b069470eefd0c274.tar.zst gsoc2013-evolution-e8db8d9ce41e7d25ab8f7e04b069470eefd0c274.zip |
Need to re-init sbf->ptr and sbf->end too, or we'll be sorrryy!
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!
svn path=/trunk/; revision=26422
-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; } |