aboutsummaryrefslogtreecommitdiffstats
path: root/tools/misc/xenperf.c
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2008-06-12 15:41:15 +0100
committerKeir Fraser <keir.fraser@citrix.com>2008-06-12 15:41:15 +0100
commit461990971f96763861501483b0316fb13b670fa4 (patch)
treefc40bc1aa8c67a4a3e1c7bfef3b75f2a4559c339 /tools/misc/xenperf.c
parent697376dd738b51c7046e00267a1844e0d02bbf62 (diff)
downloadxen-461990971f96763861501483b0316fb13b670fa4.tar.gz
xen-461990971f96763861501483b0316fb13b670fa4.tar.bz2
xen-461990971f96763861501483b0316fb13b670fa4.zip
tools: replace sprintf with snprintf where applicable
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
Diffstat (limited to 'tools/misc/xenperf.c')
-rw-r--r--tools/misc/xenperf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/misc/xenperf.c b/tools/misc/xenperf.c
index afa635a034..e91c5b6362 100644
--- a/tools/misc/xenperf.c
+++ b/tools/misc/xenperf.c
@@ -202,7 +202,7 @@ int main(int argc, char *argv[])
strncpy(hypercall_name, hypercall_name_table[j],
sizeof(hypercall_name));
else
- sprintf(hypercall_name, "[%d]", j);
+ snprintf(hypercall_name, sizeof(hypercall_name), "[%d]", j);
hypercall_name[sizeof(hypercall_name)-1]='\0';
printf("%-35s ", hypercall_name);
printf("%12u\n", (unsigned int)val[j]);