aboutsummaryrefslogtreecommitdiffstats
path: root/camel
diff options
context:
space:
mode:
authorbertrand <bertrand@helixcode.com>2000-03-03 21:15:43 +0800
committerBertrand Guiheneuf <bertrand@src.gnome.org>2000-03-03 21:15:43 +0800
commitfac011bad68ea47f987b1eadc3b092a0c366cfc3 (patch)
treed06378f97eabd80271ce799d3a2af5680f554fae /camel
parent82c30b576f2e0333338edf4f46bc83268a30c053 (diff)
downloadgsoc2013-evolution-fac011bad68ea47f987b1eadc3b092a0c366cfc3.tar
gsoc2013-evolution-fac011bad68ea47f987b1eadc3b092a0c366cfc3.tar.gz
gsoc2013-evolution-fac011bad68ea47f987b1eadc3b092a0c366cfc3.tar.bz2
gsoc2013-evolution-fac011bad68ea47f987b1eadc3b092a0c366cfc3.tar.lz
gsoc2013-evolution-fac011bad68ea47f987b1eadc3b092a0c366cfc3.tar.xz
gsoc2013-evolution-fac011bad68ea47f987b1eadc3b092a0c366cfc3.tar.zst
gsoc2013-evolution-fac011bad68ea47f987b1eadc3b092a0c366cfc3.zip
fixed state 0 keep value.
2000-03-03 bertrand <bertrand@helixcode.com> * camel-stream-b64.c (my_read_encode): fixed state 0 keep value. svn path=/trunk/; revision=2019
Diffstat (limited to 'camel')
-rw-r--r--camel/ChangeLog5
-rw-r--r--camel/camel-stream-b64.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index 04d158b4f6..45cf9db78e 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -1,3 +1,8 @@
+2000-03-03 bertrand <bertrand@helixcode.com>
+
+ * camel-stream-b64.c (my_read_encode): fixed state
+ 0 keep value.
+
2000-03-02 bertrand <bertrand@helixcode.com>
* camel-stream-b64.c (my_read_encode): don't forget to
diff --git a/camel/camel-stream-b64.c b/camel/camel-stream-b64.c
index eb99f40058..efbec9099e 100644
--- a/camel/camel-stream-b64.c
+++ b/camel/camel-stream-b64.c
@@ -374,8 +374,8 @@ my_read_encode (CamelStream *stream,
switch (status->state){
case 0:
- buffer [j++] = six_bits_to_char [c >> 2];
- status->keep = (c & 0xc0 ) >> 2;
+ buffer [j++] = six_bits_to_char [(c >> 2) & 0x3f];
+ status->keep = (c & 0x3 ) << 4;
break;
case 1: