aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hw/bt-sdp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/bt-sdp.c b/hw/bt-sdp.c
index 1d152f732d..bb060d1048 100644
--- a/hw/bt-sdp.c
+++ b/hw/bt-sdp.c
@@ -254,7 +254,7 @@ static ssize_t sdp_attr_get(struct bt_l2cap_sdp_state_s *sdp,
/* Perform the search */
if (len < 7)
return -SDP_INVALID_SYNTAX;
- memcpy(&handle, req, 6);
+ memcpy(&handle, req, 4);
req += 4;
len -= 4;