diff options
author | Albert Astals Cid <aacid@kde.org> | 2024-03-27 00:43:01 +0100 |
---|---|---|
committer | Albert Astals Cid <aacid@kde.org> | 2024-03-27 00:43:01 +0100 |
commit | 10377f9df110aaeb8d68df4d01f049d9cc9f9c21 (patch) | |
tree | aa8f3206e316d07805a386d8aaf96a04b454fbae | |
parent | 6a7f14bd867bc7215e1c94d27fb00c84c88a1db9 (diff) |
qt6: Fix crash in SoundObject::data
-rw-r--r-- | qt6/src/poppler-sound.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qt6/src/poppler-sound.cc b/qt6/src/poppler-sound.cc index 2a33a494..94248db9 100644 --- a/qt6/src/poppler-sound.cc +++ b/qt6/src/poppler-sound.cc @@ -86,7 +86,7 @@ QByteArray SoundObject::data() const QByteArray fileArray; int i; while ((i = stream->getChar()) != EOF) { - fileArray[dataLen] = (char)i; + fileArray.append((char)i); ++dataLen; } fileArray.resize(dataLen); |