summaryrefslogtreecommitdiff
path: root/src/utf16_be.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2020-04-20 20:33:58 +0200
committerJörg Frings-Fürst <debian@jff.email>2020-04-20 20:33:58 +0200
commit73c6133c32cddae59813cbadf655cb50a3a7356a (patch)
tree0935fb6da7f1d9728b42ddf08395a0e977e1c228 /src/utf16_be.c
parent043fff5b6f2461aeccb1c62cb771826cfe301832 (diff)
parent6b986090d954dbac91bbb3c43ce7c3328c91a780 (diff)
Update upstream source from tag 'upstream/6.9.5'
Update to upstream version '6.9.5' with Debian dir 1312d9badb7f1c47d032cf09765074e8fd80c991
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;
}
}