From 25e85bf5362b6f4c1878665c6037fdbfdc25c155 Mon Sep 17 00:00:00 2001 From: Matt Colyer Date: Tue, 5 Aug 2008 23:25:35 -0700 Subject: Zack's final changes to the pairing. --- src/usbmux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/usbmux.c') 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. :/ -- cgit v1.1-32-gdbae