summaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
Diffstat (limited to 'string.c')
-rw-r--r--string.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/string.c b/string.c
index 776a4d32ae..09afe05cb1 100644
--- a/string.c
+++ b/string.c
@@ -2048,12 +2048,12 @@ rb_string_value_cstr(volatile VALUE *ptr)
return s;
}
-void
+char *
rb_str_fill_terminator(VALUE str, const int newminlen)
{
char *s = RSTRING_PTR(str);
long len = RSTRING_LEN(str);
- str_fill_term(str, s, len, newminlen);
+ return str_fill_term(str, s, len, newminlen);
}
VALUE