aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-stream-mem.c
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2000-06-21 10:09:48 +0800
committerDan Winship <danw@src.gnome.org>2000-06-21 10:09:48 +0800
commit4f20138bfc192d2feff2e913fbc0ff87ca6bd19c (patch)
tree76c0972dee1278911723b296a1870e9a3922768f /camel/camel-stream-mem.c
parented11b82023a5501fb05837f63cceff18698691a5 (diff)
downloadgsoc2013-evolution-4f20138bfc192d2feff2e913fbc0ff87ca6bd19c.tar.gz
gsoc2013-evolution-4f20138bfc192d2feff2e913fbc0ff87ca6bd19c.tar.zst
gsoc2013-evolution-4f20138bfc192d2feff2e913fbc0ff87ca6bd19c.zip
flush the filter stream before unreffing it, so it will
* camel-mime-part.c (write_to_stream): flush the filter stream before unreffing it, so it will camel_mime_filter_complete. * camel-stream-filter.c (camel_stream_filter_class_init): Fix a braino so camel_stream_flush works here. * camel-stream-mem.c (stream_seek): Fix a bug that resulted in large attachments being silently dropped. * providers/pop3/camel-pop3-store.c (camel_pop3_command_get_additional_data): Don't use g_strjoinv here, since it is O(n^2) on the length of the output string, and we can do O(n). * camel-mime-part-utils.c (simple_data_wrapper_construct_from_parser): add a CRLF decoder after the QP/B64 decoder if it's text. svn path=/trunk/; revision=3658
Diffstat (limited to 'camel/camel-stream-mem.c')
-rw-r--r--camel/camel-stream-mem.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/camel/camel-stream-mem.c b/camel/camel-stream-mem.c
index 2d5c84a113..722b49f3f8 100644
--- a/camel/camel-stream-mem.c
+++ b/camel/camel-stream-mem.c
@@ -233,9 +233,9 @@ stream_seek (CamelSeekableStream *stream, off_t offset,
break;
}
- if (stream->bound_end == CAMEL_STREAM_UNBOUND)
+ if (stream->bound_end != CAMEL_STREAM_UNBOUND)
position = MIN (position, stream->bound_end);
- if (stream->bound_start == CAMEL_STREAM_UNBOUND)
+ if (stream->bound_start != CAMEL_STREAM_UNBOUND)
position = MAX (position, 0);
else
position = MAX (position, stream->bound_start);