summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--protocol.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/protocol.c b/protocol.c
index 4167d5e..a23920f 100644
--- a/protocol.c
+++ b/protocol.c
@@ -309,7 +309,7 @@ struct mt_mndp_info *parse_mndp(const unsigned char *data, const int packet_len)
mndp_hdr = (struct mt_mndp_hdr*)data;
- memcpy(&(packet.header), mndp_hdr, sizeof(mndp_hdr));
+ memcpy(&(packet.header), mndp_hdr, sizeof(struct mt_mndp_hdr));
p = data + sizeof(struct mt_mndp_hdr);