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