summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2021-10-29 14:29:45 +0200
committerYorhel <git@yorhel.nl>2021-10-29 14:29:47 +0200
commit4126dd51e90deb9e22dfd139cc4518a7812fcad6 (patch)
treeda3faebb554f36cdfd9224895a341a12640945ba
parent997cf16ec4f8389f30af7166ee96442c16628ff1 (diff)
uit_dl.c: Use mvaddstr() instead of mvprintw() for dynamic string
Trips up on Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=997167 Not actually a bug in this case, the given string cannot contain printf formatting codes.
-rw-r--r--src/uit_dl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/uit_dl.c b/src/uit_dl.c
index 2012b49..dd75144 100644
--- a/src/uit_dl.c
+++ b/src/uit_dl.c
@@ -224,7 +224,7 @@ static void t_draw(ui_tab_t *tab) {
if(sel) {
char hash[40] = {};
base32_encode(sel->hash, hash);
- mvprintw(bottom, 0, hash);
+ mvaddstr(bottom, 0, hash);
} else
mvaddstr(bottom, 0, "Nothing selected.");
mvprintw(bottom, wincols-19, "%5d files - %3d%%", g_hash_table_size(dl_queue), pos);