summaryrefslogtreecommitdiff
path: root/src/utf16_be.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2020-04-21 06:47:36 +0200
committerJörg Frings-Fürst <debian@jff.email>2020-04-21 06:47:36 +0200
commita792c4308d32f68f34131ff89e124190e4513c38 (patch)
tree68d5ba9857cafd597ea84011077a83e43f2d1620 /src/utf16_be.c
parent9e629c8f43b43617fa5b7d3654f7d81e81b8a427 (diff)
parentd1ffcb88ee95aded1bc4aef56f4f39951ad03ceb (diff)
Merge branch 'release/debian/6.9.5-1'debian/6.9.5-1
Diffstat (limited to 'src/utf16_be.c')
-rw-r--r--src/utf16_be.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utf16_be.c b/src/utf16_be.c
index d99af71..d237b93 100644
--- a/src/utf16_be.c
+++ b/src/utf16_be.c
@@ -128,7 +128,7 @@ static int
utf16be_is_mbc_newline(const UChar* p, const UChar* end)
{
if (p + 1 < end) {
- if (*(p+1) == 0x0a && *p == 0x00)
+ if (*(p+1) == NEWLINE_CODE && *p == 0x00)
return 1;
#ifdef USE_UNICODE_ALL_LINE_TERMINATORS
if ((
@@ -193,7 +193,7 @@ utf16be_code_to_mbc(OnigCodePoint code, UChar *buf)
}
else {
*p++ = (UChar )((code & 0xff00) >> 8);
- *p++ = (UChar )(code & 0xff);
+ *p = (UChar )(code & 0xff);
return 2;
}
}