summaryrefslogtreecommitdiff
path: root/devel/ruby-mmap/files/extra-patch-oniguruma
blob: 6b5160b4fc62590cf2d72af260b9ef336123ff9a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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;