]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
Add missing grub_ prefix in memcpy invocation
authorVladimir Serbinenko <phcoder@gmail.com>
Sun, 22 Feb 2015 18:34:46 +0000 (19:34 +0100)
committerVladimir Serbinenko <phcoder@gmail.com>
Mon, 23 Feb 2015 21:29:33 +0000 (22:29 +0100)
grub-core/kern/dl.c
grub-core/loader/sparc64/ieee1275/linux.c

index 6850e0497411053486ef9348029ac5561d58f8ca..3a438e92f1e05cd6f9f73cb569d6e21e4c6f0a14 100644 (file)
@@ -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
index 6389170e6c577049d448626b66dde28104ef3429..63d6a1f3336295528bce162c6a517a2e2577e4ef 100644 (file)
@@ -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;
     }