ia64/xen-unstable

changeset 11732:7a7e8cf9a4f9

[HVMLOADER] Fix SMBIOS table code. One of the string lengths is incorrectly computed.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
author kaf24@firebug.cl.cam.ac.uk
date Wed Oct 04 09:32:01 2006 +0100 (2006-10-04)
parents 74855cdc4a1d
children ddc56007bf3f
files tools/firmware/hvmloader/smbios.c
line diff
     1.1 --- a/tools/firmware/hvmloader/smbios.c	Wed Oct 04 09:10:17 2006 +0100
     1.2 +++ b/tools/firmware/hvmloader/smbios.c	Wed Oct 04 09:32:01 2006 +0100
     1.3 @@ -434,7 +434,7 @@ smbios_type_4_init(void *start, unsigned
     1.4  	start += strlen(buf) + 1;
     1.5  
     1.6  	strcpy((char *)start, cpu_manufacturer);
     1.7 -	start += strlen(buf) + 1;
     1.8 +	start += strlen(cpu_manufacturer) + 1;
     1.9  
    1.10  	*((uint8_t *)start) = 0;
    1.11  	return start+1;