summaryrefslogtreecommitdiffstats
path: root/src/usbmux.c
diff options
context:
space:
mode:
authorGravatar Matt Colyer2008-08-05 23:25:35 -0700
committerGravatar Matt Colyer2008-08-05 23:28:10 -0700
commit25e85bf5362b6f4c1878665c6037fdbfdc25c155 (patch)
tree437979cdb4b9a7958a3d891d6a39a7be2bf61d17 /src/usbmux.c
parent4b558a53f61005b0ca49665d2da92303f6e14872 (diff)
downloadlibplist-25e85bf5362b6f4c1878665c6037fdbfdc25c155.tar.gz
libplist-25e85bf5362b6f4c1878665c6037fdbfdc25c155.tar.bz2
Zack's final changes to the pairing.
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. :/