From ef44ad10f284410e2db4c4ce22c8645f988f8402 Mon Sep 17 00:00:00 2001
From: Dylan Van Assche <me@dylanvanassche.be>
Date: Sun, 18 Aug 2024 20:24:46 +0200
Subject: [PATCH] qrtr.py: adding missing buffer size arg to recvfrom

qrtr_recvfrom needs to know the size of the buffer, add this missing argument.
---
 qrtr.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/qrtr.py b/qrtr.py
index ab6189a..b611424 100755
--- a/qrtr.py
+++ b/qrtr.py
@@ -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")