diff options
-rw-r--r-- | ext/stringio/stringio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/stringio/stringio.c b/ext/stringio/stringio.c index 07e970f295..863f9ab201 100644 --- a/ext/stringio/stringio.c +++ b/ext/stringio/stringio.c @@ -957,7 +957,7 @@ strio_ungetc(VALUE self, VALUE c) return strio_unget_bytes(ptr, buf, len); } else { - SafeStringValue(c); + StringValue(c); enc = rb_enc_get(ptr->string); enc2 = rb_enc_get(c); if (enc != enc2 && enc != rb_ascii8bit_encoding()) { @@ -992,7 +992,7 @@ strio_ungetbyte(VALUE self, VALUE c) } else { long cl; - SafeStringValue(c); + StringValue(c); cl = RSTRING_LEN(c); if (cl > 0) { strio_unget_bytes(ptr, RSTRING_PTR(c), cl); |