aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-10-16 09:10:56 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-10-16 09:10:56 +0000
commit37c3befe34d88fc92022cbab2044a3aac893c332 (patch)
tree9b638d20cb755b57d0c3277c42ea210517346b22
parente83e69b9c67e3a3c7718e442d9c13f524a97dbd1 (diff)
downloadruby-37c3befe34d88fc92022cbab2044a3aac893c332.tar.gz
regerror.c: lenghten MAX_ERROR_PAR_LEN to contain old property names
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65095 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--regerror.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/regerror.c b/regerror.c
index aff6354196..59cf53068e 100644
--- a/regerror.c
+++ b/regerror.c
@@ -242,8 +242,8 @@ static int to_ascii(OnigEncoding enc, UChar *s, UChar *end,
}
-/* for ONIG_MAX_ERROR_MESSAGE_LEN */
-#define MAX_ERROR_PAR_LEN 30
+/* < ONIG_MAX_ERROR_MESSAGE_LEN - max length of messages with %n */
+#define MAX_ERROR_PAR_LEN 50
extern int
onig_error_code_to_str(UChar* s, OnigPosition code, ...)