diff options
author | Erik Troan <ewt@redhat.com> | 2000-07-15 16:02:15 +0000 |
---|---|---|
committer | Erik Troan <ewt@redhat.com> | 2000-07-15 16:02:15 +0000 |
commit | 946e7fee4b2db66044a4edee956b69584d66e9ae (patch) | |
tree | 4358dbc6f9f1ba6752ec8be5ebb6aaa4d6ec4b2f /loader | |
parent | c6a0a0b7933c6a9d34bcc11a5b398981c3ecdaae (diff) | |
download | anaconda-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.c | 8 |
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); |