From 8e5f782232ac48f0afebeffb585097162fb670c7 Mon Sep 17 00:00:00 2001 From: Packit Bot Date: May 04 2021 22:15:54 +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); } /*