diff options
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: |