summaryrefslogtreecommitdiff
path: root/devel/ruby-mmap/files/extra-patch-oniguruma
diff options
context:
space:
mode:
Diffstat (limited to 'devel/ruby-mmap/files/extra-patch-oniguruma')
-rw-r--r--devel/ruby-mmap/files/extra-patch-oniguruma20
1 files changed, 20 insertions, 0 deletions
diff --git a/devel/ruby-mmap/files/extra-patch-oniguruma b/devel/ruby-mmap/files/extra-patch-oniguruma
new file mode 100644
index 000000000000..6b5160b4fc62
--- /dev/null
+++ b/devel/ruby-mmap/files/extra-patch-oniguruma
@@ -0,0 +1,20 @@
+--- mmap.c.orig Thu Feb 1 14:52:50 2007
++++ mmap.c Thu Feb 1 14:55:16 2007
+@@ -1113,7 +1113,7 @@
+ }
+ else {
+ RSTRING(str)->ptr += start;
+- repl = rb_reg_regsub(repl, str, regs);
++ repl = rb_reg_regsub(repl, str, regs, pat);
+ RSTRING(str)->ptr -= start;
+ }
+ if (OBJ_TAINTED(repl)) tainted = 1;
+@@ -1211,7 +1211,7 @@
+ }
+ else {
+ RSTRING(str)->ptr += start;
+- val = rb_reg_regsub(repl, str, regs);
++ val = rb_reg_regsub(repl, str, regs, pat);
+ RSTRING(str)->ptr -= start;
+ }
+ if (OBJ_TAINTED(repl)) tainted = 1;