From 698edcc1c04e2df0f21ffd00ef76236ae976d027 Mon Sep 17 00:00:00 2001 From: Olivier Goffart Date: Mon, 6 May 2013 16:13:58 +0200 Subject: [PATCH] Revert "Fix httpbf test." This reverts commit 460c5b067d34853e25968bfd8d9c368411b9ca28. We need to use %u for unsigned in otder to avoid the '-' to many to appear in the transferid --- 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 deed15b9e3..a7ef583248 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-%d-%d-%d", transfer->url, transfer->transfer_id, + if( sprintf(res, "%s-chunking-%u-%u-%u", transfer->url, transfer->transfer_id, transfer->block_cnt, indx ) < 0 ) { return NULL; }