]> git.zerfleddert.de Git - hmcfgusb/commitdiff
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 87b79d00f31916df1153be0f778398e2bedcfbd1..cde993b795df0b375841e64ca285894ffb578d54 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