aboutsummaryrefslogtreecommitdiff
path: root/dwm.c
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2026-10-13 15:00:21 +0200
committerHiltjo Posthuma <hiltjo@codemadness.org>2026-10-16 13:26:00 +0200
commitbca7cf2bd91760855408326411a659ff72895860 (patch)
tree9a3649a2319cf80ff2f0ae3cd9c14274dcdfc427 /dwm.c
parent1d07715ebdf41f293b8de0c027932e71d8360a36 (diff)
support spawning dmenu with more than 10 monitors
Diffstat (limited to 'dwm.c')
-rw-r--r--dwm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dwm.c b/dwm.c
index 3f45aab..421704c 100644
--- a/dwm.c
+++ b/dwm.c
@@ -1657,7 +1657,7 @@ spawn(const Arg *arg)
pid_t pid;
if (arg->v == dmenucmd)
- dmenumon[0] = '0' + selmon->num;
+ snprintf(dmenumon, sizeof(dmenumon), "%d", selmon->num);
if ((pid = fork()) == -1) {
fprintf(stderr, "dwm: fork failed: %s\n", strerror(errno));