mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 10:52:56 +00:00
use memcmp() instead of qstrncmp() for header comparison in QKatHandler::option()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
681102cb8e
commit
e19f577ee0
1 changed files with 1 additions and 1 deletions
|
@ -189,7 +189,7 @@ QVariant QKatHandler::option(QImageIOHandler::ImageOption option) const
|
|||
|
||||
QSTACKARRAY(char, header, 5);
|
||||
imagestream.readRawData(header, 5);
|
||||
if (Q_UNLIKELY(qstrncmp(header, "KATIE", 5) != 0)) {
|
||||
if (Q_UNLIKELY(::memcmp(header, "KATIE", 5) != 0)) {
|
||||
qWarning("QKatHandler::option() Invalid header (%s)", header);
|
||||
device()->seek(devicepos);
|
||||
return QVariant();
|
||||
|
|
Loading…
Add table
Reference in a new issue