summaryrefslogtreecommitdiffstats
path: root/loader
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>2000-07-15 16:02:15 +0000
committerErik Troan <ewt@redhat.com>2000-07-15 16:02:15 +0000
commit946e7fee4b2db66044a4edee956b69584d66e9ae (patch)
tree4358dbc6f9f1ba6752ec8be5ebb6aaa4d6ec4b2f /loader
parentc6a0a0b7933c6a9d34bcc11a5b398981c3ecdaae (diff)
downloadanaconda-946e7fee4b2db66044a4edee956b69584d66e9ae.tar.gz
anaconda-946e7fee4b2db66044a4edee956b69584d66e9ae.tar.xz
anaconda-946e7fee4b2db66044a4edee956b69584d66e9ae.zip
default keyboard broken by sorting things
Diffstat (limited to 'loader')
-rw-r--r--loader/lang.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/loader/lang.c b/loader/lang.c
index c1b3cba5c..9d1fafed8 100644
--- a/loader/lang.c
+++ b/loader/lang.c
@@ -556,22 +556,22 @@ int chooseKeyboard(char ** keymap, char ** kbdtypep, int flags) {
else if (kbdtype == KBDTYPE_PC && !strncmp (infoTable[j].name, "sun", 3))
continue;
kbds[i] = infoTable[j].name;
- if (!strcmp(infoTable[j].name, defkbd))
- num = i;
i++;
}
#else
kbds = alloca(sizeof(*kbds) * (hdr.numEntries + 1));
for (i = 0; i < hdr.numEntries; i++) {
kbds[i] = infoTable[i].name;
- if (!strcmp(infoTable[i].name, defkbd))
- num = i;
}
#endif
kbds[i] = NULL;
qsort(kbds, i, sizeof(*kbds), simpleStringCmp);
+ for (i = 0; i < hdr.numEntries; i++)
+ if (!strcmp(kbds[i], defkbd))
+ num = i;
+
rc = newtWinMenu(_("Keyboard Type"),
_("What type of keyboard do you have?"),
40, 5, 5, 8, kbds, &num, _("OK"), _("Back"), NULL);