Fix UTF-8 to Macintosh charset conversion

GitOrigin-RevId: f0d7fbd465cb5955be3bbde135801e1fd9701e33
This commit is contained in:
Dietrich Epp 2021-03-16 13:08:31 -04:00
parent 1315f49c1e
commit d0cbe697d9

View File

@ -61,7 +61,7 @@ int mac_from_unix(unsigned char **outptr, unsigned char *outend,
curvalue = 0;
}
do {
entry = table[*ip++];
entry = table[state | *ip++];
state = entry & 0xff00;
value = entry & 0xff;
if (value != 0) {
@ -77,6 +77,7 @@ int mac_from_unix(unsigned char **outptr, unsigned char *outend,
}
ip = curpos;
*op++ = curvalue;
last = 0;
}
}
*outptr = op;