Commit 7d446002 authored by Richard Hughes's avatar Richard Hughes
Browse files

trivial: do not pad the EISA to 12 bytes, allow the NULL byte to terminate the string

parent 415ff8ac
...@@ -356,7 +356,7 @@ gcm_edid_parse_string (const guint8 *data) ...@@ -356,7 +356,7 @@ gcm_edid_parse_string (const guint8 *data)
} }
/* ensure string is printable */ /* ensure string is printable */
for (i=0;i<12;i++) { for (i=0; text[i] != '\0'; i++) {
if (!g_ascii_isprint (text[i])) { if (!g_ascii_isprint (text[i])) {
text[i] = '-'; text[i] = '-';
replaced++; replaced++;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment