]> code.delx.au - spectrwm/commitdiff
Fix segfault caused by workspaces above 10 not being initialized.
authorReginald Kennedy <rk@rejii.com>
Fri, 20 Apr 2012 06:18:21 +0000 (14:18 +0800)
committerReginald Kennedy <rk@rejii.com>
Fri, 20 Apr 2012 06:18:21 +0000 (14:18 +0800)
spectrwm.c

index 9a61347ac0b692782f5aee43676092b8d525dd65..62dd1955a7e81115e80bcbcbb2eec1ff9aab772c 100644 (file)
@@ -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;