[hackers] [dwm] [PATCH] use correct conversion specifier for an unsigned integer

From: Tom Schwindl <schwindl_AT_posteo.de>
Date: Sat, 14 Jan 2023 23:08:39 +0000

---
 dwm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dwm.c b/dwm.c
index 03baf42b3502..d832678ab5aa 100644
--- a/dwm.c
+++ b/dwm.c
_AT_@ -1121,7 +1121,7 @@ monocle(Monitor *m)
 		if (ISVISIBLE(c))
 			n++;
 	if (n > 0) /* override layout symbol */
-		snprintf(m->ltsymbol, sizeof m->ltsymbol, "[%d]", n);
+		snprintf(m->ltsymbol, sizeof m->ltsymbol, "[%u]", n);
 	for (c = nexttiled(m->clients); c; c = nexttiled(c->next))
 		resize(c, m->wx, m->wy, m->ww - 2 * c->bw, m->wh - 2 * c->bw, 0);
 }
-- 
2.39.0
Received on Sun Jan 15 2023 - 00:08:39 CET

This archive was generated by hypermail 2.3.0 : Sun Jan 15 2023 - 00:12:33 CET