Skip to content

Commit

Permalink
Fix a bad memcpy length (Bruce Rogers).
Browse files Browse the repository at this point in the history
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5528 c046a42c-6fe2-441c-8c8c-71466251a162
  • Loading branch information
balrog committed Oct 25, 2008
1 parent ff8d81d commit fbc190d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hw/bt-sdp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit fbc190d

Please sign in to comment.