dmi.c: make sure we call isprint() correctly

ISO C and POSIX require to call ctype functions with values representable
by unsigned char. We have used a char as input so far which might be
negative and hence get sign-extended.

Corresponding to flashrom svn r1852.

Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
Acked-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
diff --git a/dmi.c b/dmi.c
index a7a9a61..832d7ab 100644
--- a/dmi.c
+++ b/dmi.c
@@ -142,7 +142,7 @@
 
 	/* 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] = ' ';