summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ui.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ui.c b/src/ui.c
index 0692954..ff6f565 100644
--- a/src/ui.c
+++ b/src/ui.c
@@ -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