From af80bf54fa86e8515091c499ff11925fa2edf9d1 Mon Sep 17 00:00:00 2001 From: Sean Hefty Date: Tue, 24 Apr 2012 11:25:01 -0700 Subject: [PATCH] Refresh of snprintf --- examples/rping.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/rping.c b/examples/rping.c index ee292eca..785338e3 100644 --- a/examples/rping.c +++ b/examples/rping.c @@ -909,7 +909,7 @@ static int rping_test_client(struct rping_cb *cb) cb->state = RDMA_READ_ADV; /* Put some ascii text in the buffer. */ - cc = sprintf(cb->start_buf, RPING_MSG_FMT, ping); + cc = snprintf(cb->start_buf, cb->size, RPING_MSG_FMT, ping); for (i = cc, c = start; i < cb->size; i++) { cb->start_buf[i] = c; c++; -- 2.46.0