mirror of
https://github.com/linux-msm/qrtr.git
synced 2025-12-23 21:46:28 +01:00
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:
committed by
Konrad Dybcio
parent
daf7f4cc32
commit
ef44ad10f2
2
qrtr.py
2
qrtr.py
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user