summaryrefslogtreecommitdiff
path: root/package/grub/patches/patch-lib_libgcrypt-grub_cipher_whirlpool_c
blob: a9251835442cc80eb7403d0a2068043b5ed43a68 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- grub-1.98.orig/lib/libgcrypt-grub/cipher/whirlpool.c	2010-03-06 21:52:26.000000000 +0100
+++ grub-1.98/lib/libgcrypt-grub/cipher/whirlpool.c	2010-06-26 20:17:35.043170089 +0200
@@ -1381,7 +1381,7 @@ whirlpool_final (void *ctx)
     context->buffer[context->count++] = 0;
 
   /* Add length of message.  */
-  memcpy (context->buffer + context->count, context->length, 32);
+  grub_memcpy (context->buffer + context->count, context->length, 32);
   context->count += 32;
   whirlpool_add (context, NULL, 0);