diff options
author | bertrand <bertrand@helixcode.com> | 2000-02-29 21:07:19 +0800 |
---|---|---|
committer | Bertrand Guiheneuf <bertrand@src.gnome.org> | 2000-02-29 21:07:19 +0800 |
commit | 57bf3cc473c15d3f630aa8fde4ea52e083c5bdc6 (patch) | |
tree | 747801f07058d525d39ddbf53546de295e4a001f /camel/camel-stream-b64.c | |
parent | 5668df1f78956739fc09a8e55f2219ce429fa64e (diff) | |
download | gsoc2013-evolution-57bf3cc473c15d3f630aa8fde4ea52e083c5bdc6.tar gsoc2013-evolution-57bf3cc473c15d3f630aa8fde4ea52e083c5bdc6.tar.gz gsoc2013-evolution-57bf3cc473c15d3f630aa8fde4ea52e083c5bdc6.tar.bz2 gsoc2013-evolution-57bf3cc473c15d3f630aa8fde4ea52e083c5bdc6.tar.lz gsoc2013-evolution-57bf3cc473c15d3f630aa8fde4ea52e083c5bdc6.tar.xz gsoc2013-evolution-57bf3cc473c15d3f630aa8fde4ea52e083c5bdc6.tar.zst gsoc2013-evolution-57bf3cc473c15d3f630aa8fde4ea52e083c5bdc6.zip |
revert strange changes.
2000-02-29 bertrand <bertrand@helixcode.com>
* gmime-utils.c (_store_header_pair_from_string):
revert strange changes.
* camel-stream-b64.c (my_read_decode): set eos to true when we
have read the whole input stream.
(my_reset): set eos to FALSE.
svn path=/trunk/; revision=1988
Diffstat (limited to 'camel/camel-stream-b64.c')
-rw-r--r-- | camel/camel-stream-b64.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/camel/camel-stream-b64.c b/camel/camel-stream-b64.c index 40427caca2..53c708fd14 100644 --- a/camel/camel-stream-b64.c +++ b/camel/camel-stream-b64.c @@ -228,7 +228,6 @@ my_read (CamelStream *stream, g_assert (stream); - if (stream_b64->mode == CAMEL_STREAM_B64_DECODER) return my_read_decode (stream, buffer, n); else @@ -303,6 +302,9 @@ my_read_decode (CamelStream *stream, } + if ((nb_read_in_input == 0) && (camel_stream_eos (input_stream))) + stream_b64->eos = TRUE; + return j; } @@ -542,6 +544,8 @@ my_reset (CamelStream *stream) stream_b64->status.decode_status.keep = 0; stream_b64->status.decode_status.state = 0; + stream_b64->eos = FALSE; + camel_stream_reset (stream_b64->input_stream); } |