From 43b18e733d836df19b106786d0025f604542e74a Mon Sep 17 00:00:00 2001 From: matz Date: Tue, 12 Mar 2002 09:28:50 +0000 Subject: * regex.c (re_compile_pattern): '\0111' should be '\011' plus '1', since octal literals are formed by three digits at most. * marshal.c (w_object): module inclusion using extend() should also be detected. * eval.c (rb_eval_cmd): cbase should not be NULL; it should be either ruby_wrapper or Object. * enum.c (enum_each_with_index): should return self. * process.c (proc_setpgrp): should return value for non-void function. * process.c (proc_getpgid): should raise exception if getpgid() return -1. * string.c (rb_str_ljust): should return a duplicated string. * string.c (rb_str_rjust): ditto. * string.c (rb_str_center): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2187 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- regex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'regex.c') diff --git a/regex.c b/regex.c index 583dd20a65..3f38757656 100644 --- a/regex.c +++ b/regex.c @@ -2257,7 +2257,7 @@ re_compile_pattern(pattern, size, bufp) /* octal */ case '0': had_mbchar = 0; - c = scan_oct(p, 3, &numlen); + c = scan_oct(p, 2, &numlen); p += numlen; had_num_literal = 1; goto numeric_char; -- cgit v1.2.3