[Spice-commits] Branch 'spice.v19' - hw/pc_piix.c

Gerd Hoffmann kraxel at kemper.freedesktop.org
Tue Oct 5 05:44:30 PDT 2010


 hw/pc_piix.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 6ff94a3128ce2ed65c2ac488673dff74ca7996d5
Author: Gerd Hoffmann <kraxel at redhat.com>
Date:   Tue Oct 5 14:43:36 2010 +0200

    [rhel6 compat] fix rhel6.0.0 type build

diff --git a/hw/pc_piix.c b/hw/pc_piix.c
index ef746d3..e82bfd1 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");


More information about the Spice-commits mailing list