From 53b1edd1dca6a3dcccdca13a66479be4116d4e5a Mon Sep 17 00:00:00 2001 From: Olivier Goffart Date: Tue, 29 Jan 2013 16:22:21 +0100 Subject: [PATCH] httpbf: Make sure to use unsigned number as the id Else, we can have filename like foo-chunking--1234-4-0 and the double dash make the serverside regexp fail --- 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 bbe8b8a915..491ab34b92 100644 --- a/src/httpbf/src/httpbf.c +++ b/src/httpbf/src/httpbf.c @@ -188,7 +188,7 @@ char* get_transfer_url( hbf_transfer_t *transfer, int indx ) { block = transfer->block_arr[indx]; if( ! block ) return NULL; - if( asprintf(&res, "%s-chunking-%d-%d-%d", transfer->url, transfer->transfer_id, + if( asprintf(&res, "%s-chunking-%u-%u-%u", transfer->url, transfer->transfer_id, transfer->block_cnt, indx ) < 0 ) { return NULL; }