always transmit the full packet size to the device
authorMichael Gernoth <michael@gernoth.net>
Wed, 29 May 2013 21:08:12 +0000 (23:08 +0200)
committerMichael Gernoth <michael@gernoth.net>
Wed, 29 May 2013 21:08:12 +0000 (23:08 +0200)
hmland.c

index 87b79d0..cde993b 100644 (file)
--- 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");
Impressum, Datenschutz