[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[dmidecode] [PATCH] dmidecode: Fix Redfish Hostname print length
From: |
Charles.Rose |
Subject: |
[dmidecode] [PATCH] dmidecode: Fix Redfish Hostname print length |
Date: |
Fri, 19 Oct 2018 22:59:28 +0000 |
Redfish Hostname prints beyond hlen characters. Fix it.
Signed-off-by: Charles Rose <address@hidden>
---
dmidecode.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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);
}
/*
--
1.8.3.1