Skip to contentSkip to conversation

[5528] Fix a bad memcpy length (Bruce Rogers).

Qemu-devel Andrzej Zaborowski 1 participant 1 message Oct 25, 2008

lore
Share & tools
lore
#0 lore raw

Revision: 5528

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5528
Author:   balrog
Date:     2008-10-25 00:10:20 +0000 (Sat, 25 Oct 2008)

Log Message:
-----------
Fix a bad memcpy length (Bruce Rogers).

Modified Paths:
--------------
trunk/hw/bt-sdp.c

Modified: trunk/hw/bt-sdp.c
===================================================================

hw/bt-sdp.c +1 -1
@@ -254,7 +254,7 @@
     /* Perform the search */
     if (len < 7)
         return -SDP_INVALID_SYNTAX;
-    memcpy(&handle, req, 6);
+    memcpy(&handle, req, 4);
     req += 4;
     len -= 4;