]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
lib/xzembed/xz_dec_stream: Replace grub_memcpy() call with memcpy()
authorDaniel Kiper <daniel.kiper@oracle.com>
Thu, 23 Oct 2025 17:37:49 +0000 (19:37 +0200)
committerDaniel Kiper <daniel.kiper@oracle.com>
Fri, 24 Oct 2025 18:05:08 +0000 (20:05 +0200)
Make the code consistent.

Signed-off-by: Daniel Kiper <daniel.kiper@oracle.com>
Reviewed-by: Alec Brown <alec.r.brown@oracle.com>
grub-core/lib/xzembed/xz_dec_stream.c

index f2dd42dc26696b3d09f895f80f01c18f7114f6d5..13658d44811dfa046c45db9195cd1b7ab542bd58 100644 (file)
@@ -387,8 +387,7 @@ static enum xz_ret hash_validate(struct xz_dec *s, struct xz_buf *b,
                && sizeof (s->hash_value) >= hash->mdlen)
        {
                hash->final(hash_context);
-               grub_memcpy (s->hash_value, hash->read(hash_context),
-                            hash->mdlen);
+               memcpy (s->hash_value, hash->read (hash_context), hash->mdlen);
                s->have_hash_value = 1;
                if (s->hash_id == 1 || crc32)
                {