aboutsummaryrefslogtreecommitdiffstats
path: root/tools/xenstore/xenstored_transaction.c
diff options
context:
space:
mode:
authorKeir Fraser <keir@xensource.com>2007-10-05 14:11:36 +0100
committerKeir Fraser <keir@xensource.com>2007-10-05 14:11:36 +0100
commitf056fc9b801555fa363fb4066fdc6bad5a3b4ab8 (patch)
treee2f604321a55a8f0241d380af73ab2967d1ba52a /tools/xenstore/xenstored_transaction.c
parentc4698a7d71652c686f9006a32865a4fc9d20ff2d (diff)
downloadxen-f056fc9b801555fa363fb4066fdc6bad5a3b4ab8.tar.gz
xen-f056fc9b801555fa363fb4066fdc6bad5a3b4ab8.tar.bz2
xen-f056fc9b801555fa363fb4066fdc6bad5a3b4ab8.zip
xenstore: sprintf->snprintf, and fix for OpenBSD.
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
Diffstat (limited to 'tools/xenstore/xenstored_transaction.c')
-rw-r--r--tools/xenstore/xenstored_transaction.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/xenstore/xenstored_transaction.c b/tools/xenstore/xenstored_transaction.c
index f079bdc7e1..380c691bb2 100644
--- a/tools/xenstore/xenstored_transaction.c
+++ b/tools/xenstore/xenstored_transaction.c
@@ -181,7 +181,7 @@ void do_transaction_start(struct connection *conn, struct buffered_data *in)
talloc_set_destructor(trans, destroy_transaction);
conn->transaction_started++;
- sprintf(id_str, "%u", trans->id);
+ snprintf(id_str, sizeof(id_str), "%u", trans->id);
send_reply(conn, XS_TRANSACTION_START, id_str, strlen(id_str)+1);
}