From 33df13be3479f7ddfb205c6be8dec4750eb465c8 Mon Sep 17 00:00:00 2001 From: Michael Gernoth Date: Wed, 29 May 2013 23:08:12 +0200 Subject: [PATCH 1/1] always transmit the full packet size to the device --- hmland.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hmland.c b/hmland.c index 87b79d0..cde993b 100644 --- a/hmland.c +++ b/hmland.c @@ -292,7 +292,7 @@ static int hmlan_parse_in(int fd, void *data) break; } - hmcfgusb_send(dev, out, outpos-out, 1); + hmcfgusb_send(dev, out, sizeof(out), 1); } } else if (r < 0) { perror("read"); -- 2.39.2