summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2010-10-05 14:43:36 +0200
committerGerd Hoffmann <kraxel@redhat.com>2010-10-05 14:43:36 +0200
commit6ff94a3128ce2ed65c2ac488673dff74ca7996d5 (patch)
treef3f15400e9aa79addfb76a9b1f489e9c9b8a604e
parentc461abb484af8807c355fd997e9aa3cc7866f943 (diff)
[rhel6 compat] fix rhel6.0.0 type buildspice.v19
-rw-r--r--hw/pc_piix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/pc_piix.c b/hw/pc_piix.c
index ef746d3ee..e82bfd133 100644
--- a/hw/pc_piix.c
+++ b/hw/pc_piix.c
@@ -347,7 +347,7 @@ static void rhel_common_init(const char *type1_version,
snprintf(buf, sizeof(buf), "KVM");
smbios_add_field(1, offsetof(struct smbios_type_1, product_name_str),
strlen(buf) + 1, buf);
- snprintf(buf, sizeof(buf), type1_version);
+ snprintf(buf, sizeof(buf), "%s", type1_version);
smbios_add_field(1, offsetof(struct smbios_type_1, version_str),
strlen(buf) + 1, buf);
snprintf(buf, sizeof(buf), "Red Hat Enterprise Linux");