lib/xzembed/xz_dec_stream: Replace grub_memcpy() call with memcpy()

Make the code consistent.

Signed-off-by: Daniel Kiper <daniel.kiper@oracle.com>
Reviewed-by: Alec Brown <alec.r.brown@oracle.com>
This commit is contained in:
Daniel Kiper 2025-10-23 19:37:49 +02:00
parent 7ded35feaa
commit 11845da2b1

View 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)
{