Fix HTTPBF again

it really needs to be %u because if it is signed, then we have -- in the
URL which the server can't understand
This commit is contained in:
Olivier Goffart 2013-05-13 17:50:39 +02:00
parent 3e795a84c2
commit 00d27d0e9c

View file

@ -231,7 +231,8 @@ 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,
/* Note: must be %u for unsigned because one does not want '--' */
if( sprintf(res, "%s-chunking-%u-%u-%u", transfer->url, transfer->transfer_id,
transfer->block_cnt, indx ) < 0 ) {
return NULL;
}