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
Mikhail Svetkin 2018-10-16 14:51:58 +02:00
parent 5760545ebb
commit ef567c3b67
1 changed files with 1 additions and 1 deletions

View File

@ -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] = '-';
}