Commit fbc190d82a7a16b08c72827fe5d92dc5315f175f

Authored by balrog
1 parent ff8d81d8

Fix a bad memcpy length (Bruce Rogers).


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5528 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 1 additions and 1 deletions
hw/bt-sdp.c
... ... @@ -254,7 +254,7 @@ static ssize_t sdp_attr_get(struct bt_l2cap_sdp_state_s *sdp,
254 254 /* Perform the search */
255 255 if (len < 7)
256 256 return -SDP_INVALID_SYNTAX;
257   - memcpy(&handle, req, 6);
  257 + memcpy(&handle, req, 4);
258 258 req += 4;
259 259 len -= 4;
260 260  
... ...