diff --git a/src/imageformats/ani.cpp b/src/imageformats/ani.cpp index 9bf3470..3fa7c83 100644 --- a/src/imageformats/ani.cpp +++ b/src/imageformats/ani.cpp @@ -12,6 +12,8 @@ #include #include +#include + namespace { struct ChunkHeader { @@ -419,7 +421,7 @@ bool ANIHandler::ensureScanned() const } // FIXME encoding - const QString stringValue = QString::fromLocal8Bit(value); + const QString stringValue = QString::fromLocal8Bit(value.constData(), std::strlen(value.constData())); if (chunkId == "INAM") { mutableThis->m_name = stringValue; } else if (chunkId == "IART") {