From e2a5a7a12e7e58e01ebccd18d1afaf819888060f Mon Sep 17 00:00:00 2001 From: Xiangfu Date: Mon, 24 Dec 2012 11:03:41 +0800 Subject: [PATCH] fix snprintf no format arguments warnings --- libs/model_conns.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/model_conns.c b/libs/model_conns.c index e48a50e..75959d8 100644 --- a/libs/model_conns.c +++ b/libs/model_conns.c @@ -768,8 +768,8 @@ int add_conn_net_i(struct fpga_model *model, const struct w_net_i *net) && net->yx[j].x == net->yx[i].x) continue; for (k = 0; k <= net->wire_inc; k++) { - snprintf(i_str, sizeof(i_str), fpga_connpt_str(model, net->wire+k, net->yx[i].y, net->yx[i].x, net->yx[j].y, net->yx[j].x)); - snprintf(j_str, sizeof(j_str), fpga_connpt_str(model, net->wire+k, net->yx[j].y, net->yx[j].x, net->yx[i].y, net->yx[i].x)); + snprintf(i_str, sizeof(i_str), "%s", fpga_connpt_str(model, net->wire+k, net->yx[i].y, net->yx[i].x, net->yx[j].y, net->yx[j].x)); + snprintf(j_str, sizeof(j_str), "%s", fpga_connpt_str(model, net->wire+k, net->yx[j].y, net->yx[j].x, net->yx[i].y, net->yx[i].x)); RC_ASSERT(model, i_str[0] && j_str[0]); if ((rc = add_conn_bi(model, net->yx[i].y, net->yx[i].x, i_str,