From: Michael Gernoth Date: Wed, 29 May 2013 21:08:12 +0000 (+0200) Subject: always transmit the full packet size to the device X-Git-Tag: v0.100~102 X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/hmcfgusb/commitdiff_plain/33df13be3479f7ddfb205c6be8dec4750eb465c8 always transmit the full packet size to the device --- 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");