summaryrefslogtreecommitdiffstats
path: root/src/plugins/imageformats/macjp2/qmacjp2handler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/imageformats/macjp2/qmacjp2handler.cpp')
-rw-r--r--src/plugins/imageformats/macjp2/qmacjp2handler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/imageformats/macjp2/qmacjp2handler.cpp b/src/plugins/imageformats/macjp2/qmacjp2handler.cpp
index 8b06250..2642099 100644
--- a/src/plugins/imageformats/macjp2/qmacjp2handler.cpp
+++ b/src/plugins/imageformats/macjp2/qmacjp2handler.cpp
@@ -37,7 +37,7 @@ bool QMacJp2Handler::canRead(QIODevice *iod)
bool bCanRead = false;
char buf[12];
if (iod && iod->peek(buf, 12) == 12)
- bCanRead = !qstrncmp(buf, "\000\000\000\fjP \r\n\207\n", 12);
+ bCanRead = !memcmp(buf, "\000\000\000\fjP \r\n\207\n", 12);
return bCanRead;
}