diff --git a/src/edid.cpp b/src/edid.cpp --- a/src/edid.cpp +++ b/src/edid.cpp @@ -406,9 +406,9 @@ QString Edid::Private::edidParseString(const quint8 *data) const { - /* this is always 12 bytes, but we can't guarantee it's null + /* this is always 13 bytes, but we can't guarantee it's null * terminated or not junk. */ - auto text = QString::fromLocal8Bit(reinterpret_cast(data), 12); + auto text = QString::fromLocal8Bit(reinterpret_cast(data), 13); // Remove newlines, extra spaces and stuff return text.simplified();