diff options
Diffstat (limited to 'usr')
-rw-r--r-- | usr/src/boot/sys/boot/efi/loader/main.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/usr/src/boot/sys/boot/efi/loader/main.c b/usr/src/boot/sys/boot/efi/loader/main.c index 7db2db1f64..c690102794 100644 --- a/usr/src/boot/sys/boot/efi/loader/main.c +++ b/usr/src/boot/sys/boot/efi/loader/main.c @@ -381,20 +381,22 @@ main(int argc, CHAR16 *argv[]) case 'S': if (argv[i][j + 1] == 0) { if (i + 1 == argc) { - setenv("comconsole_speed", "115200", 1); + strncpy(var, "115200", + sizeof(var)); } else { - cpy16to8(&argv[i + 1][0], var, + CHAR16 *ptr; + ptr = &argv[i + 1][0]; + cpy16to8(ptr, var, sizeof(var)); - setenv("comconsole_speedspeed", var, 1); } i++; - break; } else { cpy16to8(&argv[i][j + 1], var, sizeof(var)); - setenv("comconsole_speed", var, 1); - break; } + strncat(var, ",8,n,1,-", sizeof(var)); + setenv("ttya-mode", var, 1); + break; case 'v': howto |= RB_VERBOSE; break; |