diff options
Diffstat (limited to 'enc/euc_jp.c')
-rw-r--r-- | enc/euc_jp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/enc/euc_jp.c b/enc/euc_jp.c index fb8bf41c25..21f30ad2f3 100644 --- a/enc/euc_jp.c +++ b/enc/euc_jp.c @@ -222,7 +222,7 @@ mbc_case_fold(OnigCaseFoldType flag, } static UChar* -left_adjust_char_head(const UChar* start, const UChar* s, OnigEncoding enc) +left_adjust_char_head(const UChar* start, const UChar* s, const UChar* end, OnigEncoding enc) { /* In this encoding mb-trail bytes doesn't mix with single bytes. @@ -234,7 +234,7 @@ left_adjust_char_head(const UChar* start, const UChar* s, OnigEncoding enc) p = s; while (!eucjp_islead(*p) && p > start) p--; - 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)); |