diff options
Diffstat (limited to 'enc')
-rw-r--r-- | enc/euc_jp.c | 2 | ||||
-rw-r--r-- | enc/shift_jis.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/enc/euc_jp.c b/enc/euc_jp.c index 3b339f9600..eb7777a8e5 100644 --- a/enc/euc_jp.c +++ b/enc/euc_jp.c @@ -290,7 +290,7 @@ property_name_to_ctype(OnigEncoding enc, UChar* p, UChar* end) PROPERTY_LIST_INIT_CHECK; - s = e = ALLOC_N(UChar, end-p+1); + s = e = ALLOCA_N(UChar, end-p+1); for (; p < end; p++) { *e++ = ONIGENC_ASCII_CODE_TO_LOWER_CASE(*p); } diff --git a/enc/shift_jis.c b/enc/shift_jis.c index cac4cf7751..ee726cf71a 100644 --- a/enc/shift_jis.c +++ b/enc/shift_jis.c @@ -299,7 +299,7 @@ property_name_to_ctype(OnigEncoding enc, UChar* p, UChar* end) PROPERTY_LIST_INIT_CHECK; - s = e = ALLOC_N(UChar, end-p+1); + s = e = ALLOCA_N(UChar, end-p+1); for (; p < end; p++) { *e++ = ONIGENC_ASCII_CODE_TO_LOWER_CASE(*p); } |