diff --git a/intl/uconv/src/ugen.c b/intl/uconv/src/ugen.c index 7fd5b6f58901..3f2f480f1c0b 100644 --- a/intl/uconv/src/ugen.c +++ b/intl/uconv/src/ugen.c @@ -732,9 +732,9 @@ PRIVATE PRBool uCnGAlways8BytesComposedHangul( *outlen = 8; out[0] = out[2] = out[4] = out[6] = 0xa4; out[1] = 0xd4; - out[2] = lMap[LIndex]; - out[4] = VIndex + 0xbf; - out[6] = tMap[TIndex]; + out[3] = lMap[LIndex]; + out[5] = VIndex + 0xbf; + out[7] = tMap[TIndex]; return PR_TRUE; } } diff --git a/intl/uconv/util/ugen.c b/intl/uconv/util/ugen.c index 7fd5b6f58901..3f2f480f1c0b 100644 --- a/intl/uconv/util/ugen.c +++ b/intl/uconv/util/ugen.c @@ -732,9 +732,9 @@ PRIVATE PRBool uCnGAlways8BytesComposedHangul( *outlen = 8; out[0] = out[2] = out[4] = out[6] = 0xa4; out[1] = 0xd4; - out[2] = lMap[LIndex]; - out[4] = VIndex + 0xbf; - out[6] = tMap[TIndex]; + out[3] = lMap[LIndex]; + out[5] = VIndex + 0xbf; + out[7] = tMap[TIndex]; return PR_TRUE; } }