summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-rw-r--r--ext/strscan/strscan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/strscan/strscan.c b/ext/strscan/strscan.c
index a62616ceea..ec983e1f50 100644
--- a/ext/strscan/strscan.c
+++ b/ext/strscan/strscan.c
@@ -1198,7 +1198,7 @@ inspect1(struct strscanner *p)
str = rb_str_new(0, 0);
len = p->curr;
}
- rb_str_cat2(str, CURPTR(p) - len, len);
+ rb_str_cat(str, CURPTR(p) - len, len);
return rb_str_dump(str);
}