summaryrefslogtreecommitdiffstats
path: root/src/usbmux.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/usbmux.c')
-rw-r--r--src/usbmux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/usbmux.c b/src/usbmux.c
index 043f8af..cbae760 100644
--- a/src/usbmux.c
+++ b/src/usbmux.c
@@ -224,7 +224,7 @@ int mux_send(usbmux_connection *connection, const char *data, uint32 datalen) {
connection->header->length16 = ntohs(connection->header->length16);
// Now return the bytes.
- if (bytes < sizeof(*connection)+datalen) {
+ if (bytes < sizeof(usbmux_tcp_header)+datalen) {
return -1; // blah
} else {
return bytes - 28; // actual length sent. :/