From c40f67c557fd25c26f9b9ea39b656c266f3f3049 Mon Sep 17 00:00:00 2001 From: Jef Driesen Date: Wed, 16 Jul 2008 16:59:31 +0000 Subject: [PATCH] Skip the entire header of the packet, not only the first byte. --- src/uwatec_memomouse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/uwatec_memomouse.c b/src/uwatec_memomouse.c index 165171e..276721c 100644 --- a/src/uwatec_memomouse.c +++ b/src/uwatec_memomouse.c @@ -329,7 +329,7 @@ uwatec_memomouse_read_packet_inner (uwatec_memomouse_device_t *device, unsigned // Copy the package to the output buffer. if (total - 3 <= size) { - memcpy (data, buffer + 1, total - 3); + memcpy (data, buffer + 2, total - 3); } else { WARNING ("Insufficient buffer space available."); return DEVICE_STATUS_MEMORY;