From a6e0a589762b59acb9e9aa5456b90ec00afd0771 Mon Sep 17 00:00:00 2001 From: CaCO3 Date: Sat, 4 Apr 2026 17:19:21 +0200 Subject: [PATCH] fix: duc ui shows raw pointer value instead of human-readable size %*lu with (size_t) siz was printing the stack address of the char[] buffer instead of its string content. Use %*s instead. --- src/duc/cmd-ui.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/duc/cmd-ui.c b/src/duc/cmd-ui.c index ce3d36f..0406320 100644 --- a/src/duc/cmd-ui.c +++ b/src/duc/cmd-ui.c @@ -192,7 +192,7 @@ static duc_dir *do_dir(duc *duc, duc_dir *dir, int depth) char siz[32]; duc_human_size(&e->size, st, opt_bytes, siz, sizeof siz); if(cur != i) attrset(attr_size); - printw("%*lu", max_size_len, (size_t) siz); + printw("%*s", max_size_len, siz); printw(" "); char *p = e->name;