solve the bcs table index use inconsistency

https://github.com/eclipse-ee4j/mail/pull/475
pull/184/head
M66B 4 years ago
parent 54a075f5a0
commit 2a5ce4f2b8

@ -820,7 +820,7 @@ public class MimeMultipart extends Multipart {
*/
// compute how many bytes we can skip
int skip = Math.max(i + 1 - bcs[inbuf[i] & 0x7f], gss[i]);
int skip = Math.max(i + 1 - bcs[inbuf[i] & 0xff], gss[i]);
// want to keep at least two characters
if (skip < 2) {
// only skipping one byte, save one byte

Loading…
Cancel
Save