diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/ui.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -26,8 +26,9 @@ void load_ui(struct ui_struct *ui) { poll_status(ui->stat); if (ui->stat->total) { pct = (ui->stat->cur) * 100 / (ui->stat->total); - sprintf(status_string, "%lu/%lu, %lu%%", ui->stat->cur, ui->stat->total, - pct); + sprintf(status_string, + "%" CURL_FORMAT_CURL_OFF_T "/%" CURL_FORMAT_CURL_OFF_T ", %hhu%%", + ui->stat->cur, ui->stat->total, (unsigned char)pct); } if (ui->stat->is_done) { (ui->stat->total) = 0; // To prevent nuklear further updating status_string |