diff options
author | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2007-01-29 14:59:42 +0000 |
---|---|---|
committer | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2007-01-29 14:59:42 +0000 |
commit | a9d66ce46044f8437a39aca8967a526553ac0c6e (patch) | |
tree | 547fa39b007d124a64a35a9f1ee6a259d8b5a0da /xen/arch/x86/dmi_scan.c | |
parent | 80777c3aae7011f0230d5b023fffeda51c4bb136 (diff) | |
download | xen-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.c | 2 |
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"); } |