---
host/main.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/host/main.c b/host/main.c
index 1823857..8e63448 100644
--- a/host/main.c
+++ b/host/main.c
@@ -84,7 +84,7 @@ static void apdu_out_cb(uint8_t *buf, unsigned int len, void
*user_data)
static int process_usb_msg(uint8_t *buf, int len)
{
- struct simtrace_hdr *sh = buf;
+ struct simtrace_hdr *sh = (struct simtrace_hdr *)buf;
uint8_t *payload = buf += sizeof(*sh);
int payload_len = len - sizeof(*sh);
--
1.7.4.1.343.ga91df.dirty