diff options
author | Keir Fraser <keir@xensource.com> | 2007-10-05 14:11:36 +0100 |
---|---|---|
committer | Keir Fraser <keir@xensource.com> | 2007-10-05 14:11:36 +0100 |
commit | f056fc9b801555fa363fb4066fdc6bad5a3b4ab8 (patch) | |
tree | e2f604321a55a8f0241d380af73ab2967d1ba52a /tools/xenstore/xenstored_transaction.c | |
parent | c4698a7d71652c686f9006a32865a4fc9d20ff2d (diff) | |
download | xen-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.c | 2 |
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); } |