aboutsummaryrefslogtreecommitdiffstats
path: root/xen/common/perfc.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/perfc.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/perfc.c')
-rw-r--r--xen/common/perfc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/xen/common/perfc.c b/xen/common/perfc.c
index 86fda48e07..bbff5d7b5c 100644
--- a/xen/common/perfc.c
+++ b/xen/common/perfc.c
@@ -148,8 +148,7 @@ static int perfc_copy_info(XEN_GUEST_HANDLE_64(xen_sysctl_perfc_desc_t) desc,
{
for ( i = 0; i < NR_PERFCTRS; i++ )
{
- strlcpy(perfc_d[i].name, perfc_info[i].name,
- sizeof(perfc_d[i].name));
+ safe_strcpy(perfc_d[i].name, perfc_info[i].name);
switch ( perfc_info[i].type )
{