summaryrefslogtreecommitdiff
path: root/error.c
diff options
context:
space:
mode:
Diffstat (limited to 'error.c')
-rw-r--r--error.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/error.c b/error.c
index 073ddfcebe..736598ca6d 100644
--- a/error.c
+++ b/error.c
@@ -1087,8 +1087,8 @@ err_append(s)
else {
VALUE str = rb_str_to_str(ruby_errinfo);
- rb_str_cat(str, "\n", 1);
- rb_str_cat(str, s, strlen(s));
+ rb_str_cat2(str, "\n");
+ rb_str_cat2(str, s);
ruby_errinfo = rb_exc_new3(rb_eSyntaxError, str);
}
}