Blame SOURCES/0001-dmidecode-Fix-Redfish-Hostname-print-length.patch

abf46d
From fde47bb227b8fa817c88d7e10a8eb771c46de1df Mon Sep 17 00:00:00 2001
abf46d
From: Charles Rose <Charles.Rose@dell.com>
abf46d
Date: Mon, 22 Oct 2018 09:48:02 +0200
abf46d
Subject: [PATCH 1/5] dmidecode: Fix Redfish Hostname print length
abf46d
abf46d
Redfish Hostname prints beyond hlen characters. Fix it.
abf46d
abf46d
Signed-off-by: Charles Rose <charles.rose@dell.com>
abf46d
Fixes: 78539b06117c ("dmidecode: Parse Modern Management Controller blocks")
abf46d
Acked-by: Neil Horman <nhorman@tuxdriver.com>
abf46d
Signed-off-by: Jean Delvare <jdelvare@suse.de>
abf46d
Signed-off-by: Lianbo Jiang <lijiang@redhat.com>
abf46d
---
abf46d
 dmidecode.c | 2 +-
abf46d
 1 file changed, 1 insertion(+), 1 deletion(-)
abf46d
abf46d
diff --git a/dmidecode.c b/dmidecode.c
abf46d
index a3e9d6c16bc2..7ac6438a23db 100644
abf46d
--- a/dmidecode.c
abf46d
+++ b/dmidecode.c
abf46d
@@ -3609,7 +3609,7 @@ static void dmi_parse_protocol_record(const char *prefix, u8 *rec)
abf46d
 		hname = out_of_spec;
abf46d
 		hlen = strlen(out_of_spec);
abf46d
 	}
abf46d
-	printf("%s\t\tRedfish Service Hostname: %*s\n", prefix, hlen, hname);
abf46d
+	printf("%s\t\tRedfish Service Hostname: %.*s\n", prefix, hlen, hname);
abf46d
 }
abf46d
 
abf46d
 /*
abf46d
-- 
abf46d
2.17.1
abf46d