1
0
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:
kojima
1999-11-01 15:45:07 +00:00
parent 8c09918339
commit a5203640f6

View File

@@ -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;
}