mirror of
https://github.com/gryf/wmaker.git
synced 2026-01-07 14:24:14 +01:00
fixed crash in workspace panel
This commit is contained in:
@@ -136,8 +136,8 @@ showData(_Panel *panel)
|
||||
str = "center";
|
||||
|
||||
idx = 1; /* center */
|
||||
for (i = 0; i < sizeof(WSNamePositions); i++) {
|
||||
if (strcmp(WSNamePositions[i], str) == 0) {
|
||||
for (i = 0; i < sizeof(WSNamePositions)/sizeof(char*); i++) {
|
||||
if (strcasecmp(WSNamePositions[i], str) == 0) {
|
||||
idx = i;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user