always transmit the full packet size to the device
[hmcfgusb] / 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;
                        }
 
                                        break;
                        }
 
-                       hmcfgusb_send(dev, out, outpos-out, 1);
+                       hmcfgusb_send(dev, out, sizeof(out), 1);
                }
        } else if (r < 0) {
                perror("read");
                }
        } else if (r < 0) {
                perror("read");
Impressum, Datenschutz