From f2f12a562969cfa658acf40a1d8608610ca9d2b8 Mon Sep 17 00:00:00 2001 From: Klaas Freitag Date: Mon, 13 May 2013 15:30:01 +0200 Subject: [PATCH] Use %d for int variables in sprintf. --- src/httpbf/src/httpbf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/httpbf/src/httpbf.c b/src/httpbf/src/httpbf.c index f5d4bc928..e9efb9d68 100644 --- a/src/httpbf/src/httpbf.c +++ b/src/httpbf/src/httpbf.c @@ -231,7 +231,7 @@ static char* get_transfer_url( hbf_transfer_t *transfer, int indx ) { return NULL; } - if( sprintf(res, "%s-chunking-%u-%u-%u", transfer->url, transfer->transfer_id, + if( sprintf(res, "%s-chunking-%d-%d-%d", transfer->url, transfer->transfer_id, transfer->block_cnt, indx ) < 0 ) { return NULL; }