Fix EDID parsing: strings can be 13 bytes
The spec gives 13 bytes (5 header, 13 data in increments of 18). Change-Id: I059590cd750ac403a1f3b44b5f9a0ee300cff5b5 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Pier Luigi Fiorini <pierluigi.fiorini@liri.io>
This commit is contained in:
parent
1a4a2f7f58
commit
5273604dac
@ -160,7 +160,7 @@ bool QEdidParser::parse(const QByteArray &blob)
|
||||
|
||||
QString QEdidParser::parseEdidString(const quint8 *data)
|
||||
{
|
||||
QByteArray buffer(reinterpret_cast<const char *>(data), 12);
|
||||
QByteArray buffer(reinterpret_cast<const char *>(data), 13);
|
||||
|
||||
// Erase carriage return and line feed
|
||||
buffer = buffer.replace('\r', '\0').replace('\n', '\0');
|
||||
|
Loading…
x
Reference in New Issue
Block a user