summaryrefslogtreecommitdiff
path: root/mailbox
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2003-03-19 12:53:00 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2003-03-19 12:53:00 +0000
commitc894e1628a47a221e56b306f68015a876c964600 (patch)
treec395fdd8a7748314be69c36b9a6f34e16851ccd5 /mailbox
parent1588186a093183b017562fc3163e0da953653c16 (diff)
downloadmailutils-c894e1628a47a221e56b306f68015a876c964600.tar.gz
mailutils-c894e1628a47a221e56b306f68015a876c964600.tar.bz2
(base64_encode): Bugfix.
Diffstat (limited to 'mailbox')
-rw-r--r--mailbox/filter_trans.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mailbox/filter_trans.c b/mailbox/filter_trans.c
index 3e1178635..7ce4bafd5 100644
--- a/mailbox/filter_trans.c
+++ b/mailbox/filter_trans.c
@@ -335,9 +335,9 @@ base64_encode (const char *iptr, size_t isize, char *optr, size_t osize,
}
*optr++ = b64[ptr[0] >> 2];
*optr++ = b64[((ptr[0] << 4) + (--isize ? (ptr[1] >> 4): 0)) & 0x3f];
- *optr++ = isize ? b64[((iptr[1] << 2) + (--isize ? (ptr[2] >> 6) : 0 )) & 0x3f] : '=';
+ *optr++ = isize ? b64[((ptr[1] << 2) + (--isize ? (ptr[2] >> 6) : 0 )) & 0x3f] : '=';
*optr++ = isize ? b64[ptr[2] & 0x3f] : '=';
- iptr += 3;
+ ptr += 3;
consumed += 3;
(*nbytes) += 4;
(*line_len) +=4;

Return to:

Send suggestions and report system problems to the System administrator.