From 8e356d0601866c7f7d8139b1135a628fd4362462 Mon Sep 17 00:00:00 2001 From: bertrand Date: Thu, 2 Mar 2000 16:21:05 +0000 Subject: use CamelStreamB64 type for the input stream. 2000-03-02 bertrand * camel-stream-b64.c (camel_stream_b64_write_to_stream): use CamelStreamB64 type for the input stream. * camel-mime-part.c (_get_content_object): remove debugging trace (_write_content_to_stream): implement the b64 encoding the new way (that is using camel_stream_b64) svn path=/trunk/; revision=2014 --- camel/camel-stream-b64.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'camel/camel-stream-b64.c') diff --git a/camel/camel-stream-b64.c b/camel/camel-stream-b64.c index cedc9f914f..df4f755fac 100644 --- a/camel/camel-stream-b64.c +++ b/camel/camel-stream-b64.c @@ -552,7 +552,7 @@ my_reset (CamelStream *stream) void -camel_stream_b64_write_to_stream (CamelStream *stream, +camel_stream_b64_write_to_stream (CamelStreamB64 *stream_b64, CamelStream *output_stream) { gchar tmp_buf[4096]; @@ -565,10 +565,10 @@ camel_stream_b64_write_to_stream (CamelStream *stream, * to an output stream. */ g_assert (output_stream); - g_assert (stream); + g_assert (stream_b64); - while (!camel_stream_eos (stream)) { - nb_read = camel_stream_read (stream, tmp_buf, 4096); + while (!camel_stream_eos (CAMEL_STREAM (stream_b64))) { + nb_read = camel_stream_read (CAMEL_STREAM (stream_b64), tmp_buf, 4096); nb_written = 0; while (nb_written < nb_read) nb_written += camel_stream_write (output_stream, tmp_buf, nb_read); -- cgit v1.2.3