aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/dmi_scan.c
diff options
context:
space:
mode:
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>2007-02-01 13:44:35 +0000
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>2007-02-01 13:44:35 +0000
commit6552100e95eff8719a53ed1d1710a149e756aa05 (patch)
treef947e70585bbfb03d7123df4f1256094a577486a /xen/arch/x86/dmi_scan.c
parent22a3e99d9709bd5acafab2440e6c6f9240a2313e (diff)
downloadxen-6552100e95eff8719a53ed1d1710a149e756aa05.tar.gz
xen-6552100e95eff8719a53ed1d1710a149e756aa05.tar.bz2
xen-6552100e95eff8719a53ed1d1710a149e756aa05.zip
safe_str*() functions check their destination argument is a
character-array type. Fix two bad callers. Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'xen/arch/x86/dmi_scan.c')
-rw-r--r--xen/arch/x86/dmi_scan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/arch/x86/dmi_scan.c b/xen/arch/x86/dmi_scan.c
index 2d49d412fc..b867febc1e 100644
--- a/xen/arch/x86/dmi_scan.c
+++ b/xen/arch/x86/dmi_scan.c
@@ -159,7 +159,7 @@ static void __init dmi_save_ident(struct dmi_header *dm, int slot, int string)
return;
dmi_ident[slot] = alloc_bootmem(strlen(p)+1);
if(dmi_ident[slot])
- safe_strcpy(dmi_ident[slot], p);
+ strlcpy(dmi_ident[slot], p, strlen(p)+1);
else
printk(KERN_ERR "dmi_save_ident: out of memory.\n");
}