From: Reginald Kennedy Date: Fri, 20 Apr 2012 06:18:21 +0000 (+0800) Subject: Fix segfault caused by workspaces above 10 not being initialized. X-Git-Url: https://jasonwoof.com/gitweb/?a=commitdiff_plain;h=4501b122e642d155b343608c2799f8c993fb7d38;hp=95c13345546e196b02bcfc763165df2a7dba9c78;p=spectrwm.git Fix segfault caused by workspaces above 10 not being initialized. --- 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;