Add missing grub_ prefix in memcpy invocation
This commit is contained in:
parent
2066c35b3f
commit
7ea452a142
2 changed files with 2 additions and 2 deletions
|
@ -340,7 +340,7 @@ grub_dl_resolve_symbols (grub_dl_t mod, Elf_Ehdr *e)
|
|||
mod->symtab = grub_malloc (s->sh_size);
|
||||
if (!mod->symtab)
|
||||
return grub_errno;
|
||||
memcpy (mod->symtab, (char *) e + s->sh_offset, s->sh_size);
|
||||
grub_memcpy (mod->symtab, (char *) e + s->sh_offset, s->sh_size);
|
||||
#else
|
||||
mod->symtab = (Elf_Sym *) ((char *) e + s->sh_offset);
|
||||
#endif
|
||||
|
|
|
@ -110,7 +110,7 @@ grub_linux_boot (void)
|
|||
int len = grub_strlen (linux_args) + 1;
|
||||
if (bp->len < len)
|
||||
len = bp->len;
|
||||
memcpy(bp->buf, linux_args, len);
|
||||
grub_memcpy(bp->buf, linux_args, len);
|
||||
bp->buf[len-1] = '\0';
|
||||
bp->valid = 1;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue