From d4c93bb458971ba5dc72e1ec8f94be079c5c396b Mon Sep 17 00:00:00 2001 From: Packit Service Date: Dec 09 2020 12:22:50 +0000 Subject: Apply patch 0001-dmidecode-Fix-Redfish-Hostname-print-length.patch patch_name: 0001-dmidecode-Fix-Redfish-Hostname-print-length.patch present_in_specfile: true --- diff --git a/dmidecode.c b/dmidecode.c index a3e9d6c..7ac6438 100644 --- a/dmidecode.c +++ b/dmidecode.c @@ -3609,7 +3609,7 @@ static void dmi_parse_protocol_record(const char *prefix, u8 *rec) hname = out_of_spec; hlen = strlen(out_of_spec); } - printf("%s\t\tRedfish Service Hostname: %*s\n", prefix, hlen, hname); + printf("%s\t\tRedfish Service Hostname: %.*s\n", prefix, hlen, hname); } /*