aboutsummaryrefslogtreecommitdiffstats
path: root/tools/console
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/console
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/console')
-rw-r--r--tools/console/daemon/io.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/console/daemon/io.c b/tools/console/daemon/io.c
index 66db0f89cb..1a3f243a36 100644
--- a/tools/console/daemon/io.c
+++ b/tools/console/daemon/io.c
@@ -525,7 +525,8 @@ static int domain_create_ring(struct domain *dom)
} else
dom->use_consolepath = 0;
- sprintf(path, "%s/type", dom->use_consolepath ? dom->conspath: dom->serialpath);
+ snprintf(path, sizeof(path), "%s/type",
+ dom->use_consolepath ? dom->conspath: dom->serialpath);
type = xs_read(xs, XBT_NULL, path, NULL);
if (type && strcmp(type, "xenconsoled") != 0) {
free(type);