mirror of https://github.com/xqemu/xqemu.git
Fix a bad memcpy length (Bruce Rogers).
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5528 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
ff8d81d84a
commit
fbc190d82a
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue