fix a potential bug in setkey.
This commit is contained in:
parent
092f32f05b
commit
19a2446669
2 changed files with 8 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
|||
2000-10-17 OKUJI Yoshinori <okuji@gnu.org>
|
||||
|
||||
* stage2/builtins.c (setkey_func): Clear the all elements of
|
||||
BIOS_KEY_MAP and ASCII_KEY_MAP instead of only the first
|
||||
elements, when TO_KEY is NULL.
|
||||
|
||||
2000-10-16 OKUJI Yoshinori <okuji@gnu.org>
|
||||
|
||||
* stage2/boot.c (load_image): When handling Linux cmdline, don't
|
||||
|
|
|
@ -3216,8 +3216,8 @@ setkey_func (char *arg, int flags)
|
|||
if (! to_key)
|
||||
{
|
||||
/* If the user specifies no argument, reset the key mappings. */
|
||||
bios_key_map[0] = 0;
|
||||
ascii_key_map[0] = 0;
|
||||
grub_memset (bios_key_map, 0, KEY_MAP_SIZE * sizeof (unsigned short));
|
||||
grub_memset (ascii_key_map, 0, KEY_MAP_SIZE * sizeof (unsigned short));
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue