mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-21 06:49:35 +00:00
fix a potential bug in setkey.
This commit is contained in:
1 parent
092f32f05b
commit
19a2446669
2 files changed
+8
-2
No files matched your search
@@ -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>
|
2000-10-16 OKUJI Yoshinori <okuji@gnu.org>
|
||||||
|
|
||||||
* stage2/boot.c (load_image): When handling Linux cmdline, don't
|
* stage2/boot.c (load_image): When handling Linux cmdline, don't
|
||||||
|
|||||||
+2
-2
@@ -3216,8 +3216,8 @@ setkey_func (char *arg, int flags)
|
|||||||
if (! to_key)
|
if (! to_key)
|
||||||
{
|
{
|
||||||
/* If the user specifies no argument, reset the key mappings. */
|
/* If the user specifies no argument, reset the key mappings. */
|
||||||
bios_key_map[0] = 0;
|
grub_memset (bios_key_map, 0, KEY_MAP_SIZE * sizeof (unsigned short));
|
||||||
ascii_key_map[0] = 0;
|
grub_memset (ascii_key_map, 0, KEY_MAP_SIZE * sizeof (unsigned short));
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user