From 2df3ca15dc0c07d30f29f98e442f10bf8ac2f7e7 Mon Sep 17 00:00:00 2001 From: Pierre-Alexandre Meyer Date: Sat, 31 Oct 2009 19:46:21 -0700 Subject: [PATCH] dmi: fix a strcpy (typo) Not sure why sprintf is being called here. It's probably strcpy that was meant. Signed-off-by: Pierre-Alexandre Meyer --- com32/gpllib/dmi/dmi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/com32/gpllib/dmi/dmi.c b/com32/gpllib/dmi/dmi.c index 0ab9aa7..9f77037 100644 --- a/com32/gpllib/dmi/dmi.c +++ b/com32/gpllib/dmi/dmi.c @@ -667,7 +667,7 @@ void dmi_decode(struct dmi_header *h, uint16_t ver, s_dmi * dmi) strcpy(dmi->processor.status,dmi_processor_status(data[0x18]&0x07)); else sprintf(dmi->processor.status,"Unpopulated"); - sprintf(dmi->processor.upgrade,dmi_processor_upgrade(data[0x19])); + strcpy(dmi->processor.upgrade,dmi_processor_upgrade(data[0x19])); if(h->length<0x20) break; dmi_processor_cache(WORD(data+0x1A), "L1", ver,dmi->processor.cache1); dmi_processor_cache(WORD(data+0x1C), "L2", ver,dmi->processor.cache2); -- 2.7.4