From 73746f036743f21144a9f88af264d162c9cfd624 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