diff options
Diffstat (limited to 'enc/cp949.c')
-rw-r--r-- | enc/cp949.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/enc/cp949.c b/enc/cp949.c index 0046460625..009443aed4 100644 --- a/enc/cp949.c +++ b/enc/cp949.c @@ -165,7 +165,7 @@ cp949_is_code_ctype(OnigCodePoint code, unsigned int ctype, OnigEncoding enc) } static UChar* -cp949_left_adjust_char_head(const UChar* start, const UChar* s, OnigEncoding enc) +cp949_left_adjust_char_head(const UChar* start, const UChar* s, const UChar* end, OnigEncoding enc) { const UChar *p; int len; @@ -181,7 +181,7 @@ cp949_left_adjust_char_head(const UChar* start, const UChar* s, OnigEncoding enc } } } - len = enclen(enc, p, s); + len = enclen(enc, p, end); if (p + len > s) return (UChar* )p; p += len; return (UChar* )(p + ((s - p) & ~1)); |