summaryrefslogtreecommitdiff
path: root/hw/bt-sdp.c
diff options
context:
space:
mode:
authorbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>2008-10-25 00:10:20 +0000
committerbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>2008-10-25 00:10:20 +0000
commit897b9cfd4e4c951931931af17a325df4c871a9c8 (patch)
tree4967710f51c54e84ee686372ddecd301177000e5 /hw/bt-sdp.c
parent369b483af8882d9496673f04509e1a90c2a5ae40 (diff)
downloadqemu-897b9cfd4e4c951931931af17a325df4c871a9c8.tar.gz
qemu-897b9cfd4e4c951931931af17a325df4c871a9c8.tar.bz2
qemu-897b9cfd4e4c951931931af17a325df4c871a9c8.zip
Fix a bad memcpy length (Bruce Rogers).
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5528 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/bt-sdp.c')
-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;