summaryrefslogtreecommitdiffstats
path: root/dmi.c
diff options
context:
space:
mode:
Diffstat (limited to 'dmi.c')
-rw-r--r--dmi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dmi.c b/dmi.c
index a7a9a61..832d7ab 100644
--- a/dmi.c
+++ b/dmi.c
@@ -142,7 +142,7 @@ static char *dmi_string(const char *buf, uint8_t string_id, const char *limit)
/* fix junk bytes in the string */
for (i = 0; i < len && buf[i] != '\0'; i++) {
- if (isprint(buf[i]))
+ if (isprint((unsigned char)buf[i]))
newbuf[i] = buf[i];
else
newbuf[i] = ' ';
OpenPOWER on IntegriCloud