aboutsummaryrefslogtreecommitdiffstats
path: root/re.c
diff options
context:
space:
mode:
Diffstat (limited to 're.c')
-rw-r--r--re.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/re.c b/re.c
index 8acf438cb2..a6b9828a69 100644
--- a/re.c
+++ b/re.c
@@ -1617,7 +1617,7 @@ rb_reg_initialize_m(int argc, VALUE *argv, VALUE self)
}
}
str = argv[0];
- ptr = StringValueCStr(str);
+ ptr = StringValuePtr(str);
if (enc
? rb_reg_initialize(self, ptr, RSTRING_LEN(str), enc, flags, err)
: rb_reg_initialize_str(self, str, flags, err)) {