diff options
Diffstat (limited to 'lang/ruby18-base/patches/patch-ch')
-rw-r--r-- | lang/ruby18-base/patches/patch-ch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lang/ruby18-base/patches/patch-ch b/lang/ruby18-base/patches/patch-ch new file mode 100644 index 00000000000..efc350b85f7 --- /dev/null +++ b/lang/ruby18-base/patches/patch-ch @@ -0,0 +1,13 @@ +$NetBSD: patch-ch,v 1.1 2005/11/02 08:56:40 taca Exp $ + +--- string.c.orig 2005-09-17 23:55:06.000000000 +0900 ++++ string.c +@@ -4189,7 +4189,7 @@ scan_once(str, pat, start) + /* + * Always consume at least one character of the input string + */ +- if (RSTRING(str)->len < END(0)) ++ if (RSTRING(str)->len > END(0)) + *start = END(0)+mbclen2(RSTRING(str)->ptr[END(0)],pat); + else + *start = END(0)+1; |