From 461990971f96763861501483b0316fb13b670fa4 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Thu, 12 Jun 2008 15:41:15 +0100 Subject: tools: replace sprintf with snprintf where applicable Signed-off-by: Christoph Egger --- tools/console/daemon/io.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tools/console') 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); -- cgit v1.2.3