diff options
Diffstat (limited to 'camel/camel-stream-b64.c')
-rw-r--r-- | camel/camel-stream-b64.c | 4 |
1 files changed, 2 insertions, 2 deletions
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: |