diff options
author | bertrand <bertrand@helixcode.com> | 2000-03-03 21:15:43 +0800 |
---|---|---|
committer | Bertrand Guiheneuf <bertrand@src.gnome.org> | 2000-03-03 21:15:43 +0800 |
commit | fac011bad68ea47f987b1eadc3b092a0c366cfc3 (patch) | |
tree | d06378f97eabd80271ce799d3a2af5680f554fae /camel | |
parent | 82c30b576f2e0333338edf4f46bc83268a30c053 (diff) | |
download | gsoc2013-evolution-fac011bad68ea47f987b1eadc3b092a0c366cfc3.tar.gz 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/ChangeLog | 5 | ||||
-rw-r--r-- | camel/camel-stream-b64.c | 4 |
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: |