aboutsummaryrefslogtreecommitdiffstats
path: root/xen/common/kexec.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/common/kexec.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/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 04a1468d3a..9e6e1858a4 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)
{
- safe_strcpy(ELFNOTE_NAME(n), name);
+ strlcpy(ELFNOTE_NAME(n), name, INT_MAX);
n->namesz = strlen(name);
n->descsz = descsz;
n->type = type;