From 6b986090d954dbac91bbb3c43ce7c3328c91a780 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Mon, 20 Apr 2020 20:33:51 +0200 Subject: New upstream version 6.9.5 --- src/utf16_le.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/utf16_le.c') diff --git a/src/utf16_le.c b/src/utf16_le.c index c6edd94..f14d263 100644 --- a/src/utf16_le.c +++ b/src/utf16_le.c @@ -140,7 +140,7 @@ static int utf16le_is_mbc_newline(const UChar* p, const UChar* end) { if (p + 1 < end) { - if (*p == 0x0a && *(p+1) == 0x00) + if (*p == NEWLINE_CODE && *(p+1) == 0x00) return 1; #ifdef USE_UNICODE_ALL_LINE_TERMINATORS if (( @@ -194,7 +194,7 @@ utf16le_code_to_mbc(OnigCodePoint code, UChar *buf) } else { *p++ = (UChar )(code & 0xff); - *p++ = (UChar )((code & 0xff00) >> 8); + *p = (UChar )((code & 0xff00) >> 8); return 2; } } -- cgit v1.2.3