2008-04-13 Robert Millan <rmh@aybabtu.com>
* kern/misc.c (grub_strncat): Fix off-by-one error. Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn> * kern/env.c (grub_env_context_close): Clear current context, not previous one. Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn> * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
This commit is contained in:
parent
7ceeee39d7
commit
9fe8603472
3 changed files with 25 additions and 7 deletions
|
@ -124,7 +124,7 @@ grub_env_context_close (void)
|
|||
{
|
||||
struct grub_env_var *p, *q;
|
||||
|
||||
for (p = current_context->prev->vars[i]; p; p = q)
|
||||
for (p = current_context->vars[i]; p; p = q)
|
||||
{
|
||||
q = p->next;
|
||||
grub_free (p);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue