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 /camel/camel-stream-buffer.c | |
parent | 576fae30db63ea0e6f2194bd5d77a820b86b08c0 (diff) | |
download | gsoc2013-evolution-e8db8d9ce41e7d25ab8f7e04b069470eefd0c274.tar.gz 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
Diffstat (limited to 'camel/camel-stream-buffer.c')
-rw-r--r-- | camel/camel-stream-buffer.c | 3 |
1 files changed, 3 insertions, 0 deletions
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; } |