if (device->peek(head, sizeof(head)) != sizeof(head))
return false;
- return (qstrncmp(head, "KATIE", 5) == 0);
+ return (::memcmp(head, "KATIE", 5) == 0);
}
bool QKatHandler::read(QImage *image)
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::read() Invalid header (%s)", header);
*image = QImage();
return false;
static const uchar pngheader[]
= { 0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a };
- return (qstrncmp(head, reinterpret_cast<const char*>(pngheader), 8) == 0);
+ return (::memcmp(head, pngheader, 8) == 0);
}
QT_END_NAMESPACE