Obsolete
/
libipc-old
Archived
3
0
Fork 0

Crystal bindings: fix rx buffer in 'read' fn.

master
Philippe Pittoli 2023-02-03 16:05:01 +01:00
parent 247134b178
commit 9fabcbdc3c
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ class IPC
buffer : Bytes = Bytes.new 2000000
size = buffer.size.to_u64
LibIPC.read(@context, fd, buffer.to_unsafe, pointerof(size))
buffer[0..size]
buffer[0..size - 1]
end
def schedule(fd : Int32, string : String)