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) {
224 connection->header->length16 = ntohs(connection->header->length16); 224 connection->header->length16 = ntohs(connection->header->length16);
225 225
226 // Now return the bytes. 226 // Now return the bytes.
227 if (bytes < sizeof(*connection)+datalen) { 227 if (bytes < sizeof(usbmux_tcp_header)+datalen) {
228 return -1; // blah 228 return -1; // blah
229 } else { 229 } else {
230 return bytes - 28; // actual length sent. :/ 230 return bytes - 28; // actual length sent. :/