aboutsummaryrefslogtreecommitdiffstats
path: root/xen/common/kexec.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/common/kexec.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/common/kexec.c')
-rw-r--r--xen/common/kexec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/common/kexec.c b/xen/common/kexec.c
index 5727cdcaa8..04a1468d3a 100644
--- a/xen/common/kexec.c
+++ b/xen/common/kexec.c
@@ -131,7 +131,7 @@ __initcall(register_crashdump_trigger);
static void setup_note(Elf_Note *n, const char *name, int type, int descsz)
{
- strcpy(ELFNOTE_NAME(n), name);
+ safe_strcpy(ELFNOTE_NAME(n), name);
n->namesz = strlen(name);
n->descsz = descsz;
n->type = type;