From 4501b122e642d155b343608c2799f8c993fb7d38 Mon Sep 17 00:00:00 2001 From: Reginald Kennedy Date: Fri, 20 Apr 2012 14:18:21 +0800 Subject: [PATCH] Fix segfault caused by workspaces above 10 not being initialized. --- spectrwm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spectrwm.c b/spectrwm.c index 9a61347..62dd195 100644 --- a/spectrwm.c +++ b/spectrwm.c @@ -6927,7 +6927,7 @@ setup_screens(void) /* init all workspaces */ /* XXX these should be dynamically allocated too */ - for (j = 0; j < workspace_limit; j++) { + for (j = 0; j < SWM_WS_MAX; j++) { ws = &screens[i].ws[j]; ws->idx = j; ws->name = NULL; -- 2.39.2