Use %d for int variables in sprintf.

This commit is contained in:
Klaas Freitag 2013-05-13 15:30:01 +02:00
parent 885eaad729
commit f2f12a5629

View file

@ -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;
}