aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/dmi_scan.c
diff options
context:
space:
mode:
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>2007-01-29 14:59:42 +0000
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>2007-01-29 14:59:42 +0000
commita9d66ce46044f8437a39aca8967a526553ac0c6e (patch)
tree547fa39b007d124a64a35a9f1ee6a259d8b5a0da /xen/arch/x86/dmi_scan.c
parent80777c3aae7011f0230d5b023fffeda51c4bb136 (diff)
downloadxen-a9d66ce46044f8437a39aca8967a526553ac0c6e.tar.gz
xen-a9d66ce46044f8437a39aca8967a526553ac0c6e.tar.bz2
xen-a9d66ce46044f8437a39aca8967a526553ac0c6e.zip
Remove uses of strcpy and strncpy from common and x86 code.
Retain safe_strcpy(). It can hide the third argument to strlcpy() in most cases. Based on patches from Christoph Egger <Christoph.Egger@amd.com> 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 89b65b7a3c..2d49d412fc 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])
- strcpy(dmi_ident[slot], p);
+ safe_strcpy(dmi_ident[slot], p);
else
printk(KERN_ERR "dmi_save_ident: out of memory.\n");
}