mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-12 12:03:17 +02:00
solve the bcs table index use inconsistency
https://github.com/eclipse-ee4j/mail/pull/475
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user