aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-seekable-substream.c
diff options
context:
space:
mode:
authorbertrand <bertrand@helixcode.com>2000-02-16 18:44:35 +0800
committerBertrand Guiheneuf <bertrand@src.gnome.org>2000-02-16 18:44:35 +0800
commitf926f10e86aee8df632613d9c5b5022e6b8597ca (patch)
tree67361fd4b7f622fe6f660b47f65d65d4877259bd /camel/camel-seekable-substream.c
parent0dfd58ef202c72905903b9df0aec462ffbd7441d (diff)
downloadgsoc2013-evolution-f926f10e86aee8df632613d9c5b5022e6b8597ca.tar.gz
gsoc2013-evolution-f926f10e86aee8df632613d9c5b5022e6b8597ca.tar.zst
gsoc2013-evolution-f926f10e86aee8df632613d9c5b5022e6b8597ca.zip
this routine replaces the _read_part routine and does not store the part
2000-02-15 bertrand <bertrand@helixcode.com> * camel/camel-multipart.c (_localize_part): this routine replaces the _read_part routine and does not store the part in a buffer. (_set_input_stream): use the set_input_stream instead of the construct_from_stream. each bodypart is given an input stream. * camel/camel-mime-part-utils.c: include the data-wrapper-repository header. (camel_mime_part_construct_content_from_stream): use the set_input_stream instead of the construct_from_stream method. * camel/camel-seekable-substream.c (_set_bounds): cur position is set to 0 not to inf_bound. Sync svn path=/trunk/; revision=1790
Diffstat (limited to 'camel/camel-seekable-substream.c')
-rw-r--r--camel/camel-seekable-substream.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/camel/camel-seekable-substream.c b/camel/camel-seekable-substream.c
index 6eabc442e7..6777eeb12d 100644
--- a/camel/camel-seekable-substream.c
+++ b/camel/camel-seekable-substream.c
@@ -168,11 +168,11 @@ _set_bounds (CamelSeekableSubstream *seekable_substream, guint32 inf_bound, gint
/* go to the first position */
camel_seekable_stream_seek (seekable_substream->parent_stream, inf_bound, SEEK_SET);
- seekable_substream->cur_pos = inf_bound;
+ seekable_substream->cur_pos = 0;
CAMEL_LOG_FULL_DEBUG ("In CamelSeekableSubstream::_set_bounds, "
- "setting inf bound to %u, "
- "sup bound to %ld, current postion to %u from %u\n",
+ "setting inf bound to %lu, "
+ "sup bound to %lld, current position to %lu from %lu\n",
seekable_substream->inf_bound, seekable_substream->sup_bound,
seekable_substream->cur_pos, inf_bound);