Skip to content

Commit

Permalink
qrtr.py: adding missing buffer size arg to recvfrom
Browse files Browse the repository at this point in the history
qrtr_recvfrom needs to know the size of the buffer, add this missing argument.
  • Loading branch information
DylanVanAssche authored and konradybcio committed Aug 21, 2024
1 parent daf7f4c commit ef44ad1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qrtr.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def recvfrom(self, sz=65536):
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")
Expand Down

0 comments on commit ef44ad1

Please sign in to comment.