debuggers.hg

diff xen/arch/x86/vmx_platform.c @ 3680:26a00896163a

bitkeeper revision 1.1159.240.3 (4202bd17uoTYqnlSeqvW9fHjznmCHg)

Merge labyrinth.cl.cam.ac.uk:/auto/groups/xeno-xenod/BK/xen-unstable.bk
into labyrinth.cl.cam.ac.uk:/auto/groups/xeno/users/iap10/xeno-clone/xen-unstable.bk
author iap10@labyrinth.cl.cam.ac.uk
date Fri Feb 04 00:08:55 2005 +0000 (2005-02-04)
parents d9cdcc864e90 b66cde79fd78
children d3f0465c034e
line diff
     1.1 --- a/xen/arch/x86/vmx_platform.c	Thu Feb 03 20:10:48 2005 +0000
     1.2 +++ b/xen/arch/x86/vmx_platform.c	Fri Feb 04 00:08:55 2005 +0000
     1.3 @@ -372,7 +372,7 @@ static int inst_copy_from_guest(char *bu
     1.4          ma = (mfn << PAGE_SHIFT) | (guest_eip & (PAGE_SIZE - 1));
     1.5          inst_start = (unsigned char *)map_domain_mem(ma);
     1.6                  
     1.7 -        strncpy(buf, inst_start, inst_len);
     1.8 +        memcpy(buf, inst_start, inst_len);
     1.9          unmap_domain_mem(inst_start);
    1.10      } else {
    1.11          // Todo: In two page frames