Crystal bindings: fix rx buffer in 'read' fn.
parent
247134b178
commit
9fabcbdc3c
|
@ -70,7 +70,7 @@ class IPC
|
||||||
buffer : Bytes = Bytes.new 2000000
|
buffer : Bytes = Bytes.new 2000000
|
||||||
size = buffer.size.to_u64
|
size = buffer.size.to_u64
|
||||||
LibIPC.read(@context, fd, buffer.to_unsafe, pointerof(size))
|
LibIPC.read(@context, fd, buffer.to_unsafe, pointerof(size))
|
||||||
buffer[0..size]
|
buffer[0..size - 1]
|
||||||
end
|
end
|
||||||
|
|
||||||
def schedule(fd : Int32, string : String)
|
def schedule(fd : Int32, string : String)
|
||||||
|
|
Reference in New Issue