mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
[HVMLOADER] Fix SMBIOS table code. One of the string lengths is incorrectly computed.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
This commit is contained in:
1 parent
fc7c643b21
commit
592a9a5792
1 file changed
+1
-1
@@ -434,7 +434,7 @@ smbios_type_4_init(void *start, unsigned int cpu_number, char *cpu_manufacturer)
|
||||
start += strlen(buf) + 1;
|
||||
|
||||
strcpy((char *)start, cpu_manufacturer);
|
||||
start += strlen(buf) + 1;
|
||||
start += strlen(cpu_manufacturer) + 1;
|
||||
|
||||
*((uint8_t *)start) = 0;
|
||||
return start+1;
|
||||
|
||||