mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-21 06:49:35 +00:00
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:
1 parent
7ded35feaa
commit
11845da2b1
1 file changed
+1
-2
@@ -387,8 +387,7 @@ static enum xz_ret hash_validate(struct xz_dec *s, struct xz_buf *b,
|
|||||||
&& sizeof (s->hash_value) >= hash->mdlen)
|
&& sizeof (s->hash_value) >= hash->mdlen)
|
||||||
{
|
{
|
||||||
hash->final(hash_context);
|
hash->final(hash_context);
|
||||||
grub_memcpy (s->hash_value, hash->read(hash_context),
|
memcpy (s->hash_value, hash->read (hash_context), hash->mdlen);
|
||||||
hash->mdlen);
|
|
||||||
s->have_hash_value = 1;
|
s->have_hash_value = 1;
|
||||||
if (s->hash_id == 1 || crc32)
|
if (s->hash_id == 1 || crc32)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user