X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/hmcfgusb/blobdiff_plain/627e3f3325f221daeb7dfe3610cc6d5caecc3b58..33df13be3479f7ddfb205c6be8dec4750eb465c8:/hmland.c 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");