qrtr.py: adding missing buffer size arg to recvfrom

qrtr_recvfrom needs to know the size of the buffer, add this missing argument.
This commit is contained in:
Dylan Van Assche
2024-08-18 20:24:46 +02:00
committed by Konrad Dybcio
parent daf7f4cc32
commit ef44ad10f2

View File

@@ -81,7 +81,7 @@ class qrtr:
node = ctypes.c_int()
port = ctypes.c_int()
buf = ctypes.create_string_buffer(sz)
n = _qrtr.qrtr_recvfrom(self.sock, c_char_p(ctypes.addressof(buf)),
n = _qrtr.qrtr_recvfrom(self.sock, c_char_p(ctypes.addressof(buf)), sz,
ctypes.byref(node), ctypes.byref(port))
if n <= 0:
raise RuntimeError("recvfrom failed")