Skip to content

Commit 294a54f

Browse files
committed
Fix last incorrect usage of FFI::Pointer#write_string
1 parent 77d7540 commit 294a54f

File tree

1 file changed

+1
-1
lines changed
  • src/main/ruby/truffleruby/core

1 file changed

+1
-1
lines changed

src/main/ruby/truffleruby/core/io.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1560,7 +1560,7 @@ def ioctl(command, arg = 0)
15601560
# is still necessary.
15611561
buffer_size = 4096 if buffer_size < 4096
15621562
buffer = Truffle::FFI::MemoryPointer.new(buffer_size)
1563-
buffer.write_string(arg, arg.bytesize)
1563+
buffer.write_bytes(arg)
15641564
real_arg = buffer.address
15651565
else
15661566
real_arg = Primitive.rb_to_int(arg)

0 commit comments

Comments
 (0)