qedidparser: Fix a condition typo
'\040' is 32 and '\176' is 126. The condition is always false "if (buffer[i] < '\040' || buffer[i] > '\176')" Task-number: QTBUG-71156 Change-Id: Ic3d6eae5b8ddb56742315af7e78b58bea2393d7a Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>bb10
parent
5760545ebb
commit
ef567c3b67
|
|
@ -166,7 +166,7 @@ QString QEdidParser::parseEdidString(const quint8 *data)
|
|||
|
||||
// Replace non-printable characters with dash
|
||||
for (int i = 0; i < buffer.count(); ++i) {
|
||||
if (buffer[i] < '\040' && buffer[i] > '\176')
|
||||
if (buffer[i] < '\040' || buffer[i] > '\176')
|
||||
buffer[i] = '-';
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue