From d779b3e0fcbe70d099c0317d4a7cab3db59a4045 Mon Sep 17 00:00:00 2001 From: Matthew Garrett Date: Thu, 7 Jan 2016 15:31:36 -0800 Subject: [PATCH] Fix hex representation of binary variable contents The getenv code was mishandling the conversion of binary to hex. Grub's sprintf() doesn't seem to support the full set of format conversions, so fix this in the nasty way. --- grub-core/commands/efi/getenv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grub-core/commands/efi/getenv.c b/grub-core/commands/efi/getenv.c index 5a829f5e4..7eb2c4506 100644 --- a/grub-core/commands/efi/getenv.c +++ b/grub-core/commands/efi/getenv.c @@ -119,7 +119,7 @@ grub_cmd_getenv (grub_extcmd_context_t ctxt, int argc, char **args) { bindata = grub_zalloc(datasize * 2 + 1); for (i=0; i