Diff between 621861cd84d6f4522b35b16b10a347e733808dda and 6df32c89da8ddb98376a868e8d251e810e89b22e
Changed Files
| File | Additions | Deletions | Status |
| tools/btsnoop.c | +3 | -2 | modified |
Full Patch
diff --git a/tools/btsnoop.c b/tools/btsnoop.c
index 6ca62d2..14581f2 100644
--- a/tools/btsnoop.c
+++ b/tools/btsnoop.c
@@ -211,8 +211,9 @@ next_packet:
goto next_packet;
}
- written = input_pkt[select_input].size = htobe32(toread - 1);
- written = input_pkt[select_input].len = htobe32(toread - 1);
+ written = htobe32(toread - 1);
+ input_pkt[select_input].size = written;
+ input_pkt[select_input].len = written;
switch (buf[0]) {
case 0x01: