summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbert Astals Cid <aacid@kde.org>2024-03-27 00:43:01 +0100
committerAlbert Astals Cid <aacid@kde.org>2024-03-27 00:43:01 +0100
commit10377f9df110aaeb8d68df4d01f049d9cc9f9c21 (patch)
treeaa8f3206e316d07805a386d8aaf96a04b454fbae
parent6a7f14bd867bc7215e1c94d27fb00c84c88a1db9 (diff)
qt6: Fix crash in SoundObject::data
-rw-r--r--qt6/src/poppler-sound.cc2
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);