From b0ad16cf4d4b3ad3e477c95f1bef30e0d937d9ac Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Wed, 1 Jan 2014 00:24:27 -0800 Subject: [PATCH] tools: Fix issue with too short packet length variable --- tools/btproxy.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/btproxy.c b/tools/btproxy.c index fd41f6f97..3c7c48f07 100644 --- a/tools/btproxy.c +++ b/tools/btproxy.c @@ -74,7 +74,7 @@ struct stream { int dst_fd; uint8_t dst_type; uint8_t buf[4096]; - uint8_t len; + uint16_t len; }; static void stream_free(void *data) @@ -194,6 +194,7 @@ process_packet: wlen = pktlen; } + printf("* wlen = %zd\n", wlen); util_hexdump('*', wbuf, wlen, hexdump_print, NULL); while (wlen > 0) { -- 2.47.3