summaryrefslogtreecommitdiff
path: root/ext/io/console/console.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/io/console/console.c')
-rw-r--r--ext/io/console/console.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/io/console/console.c b/ext/io/console/console.c
index dd15c8b015..b24ac74f27 100644
--- a/ext/io/console/console.c
+++ b/ext/io/console/console.c
@@ -1564,7 +1564,7 @@ static VALUE
str_chomp(VALUE str)
{
if (!NIL_P(str)) {
- rb_funcallv(str, id_chomp_bang, 0, 0);
+ rb_funcallv(str, id_chomp_bang, 1, &rb_default_rs);
}
return str;
}