From 6f2637a8c957792a77b157453cb015844645d9e1 Mon Sep 17 00:00:00 2001 From: Packit Service Date: Dec 12 2020 06:14:30 +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); } /*