mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
fix: dataToString correctness regression
It would incorrectly prepend garbage to the output and then truncate it, regression introduced in 6c150a04c0
This commit is contained in:
parent
8f01505740
commit
a4bda26525
|
@ -42,7 +42,7 @@ QString dataToString(QByteArray data)
|
|||
return QString();
|
||||
|
||||
// Remove the strlen
|
||||
data.remove(0, i - 1);
|
||||
data.remove(0, i);
|
||||
data.truncate(strlen);
|
||||
|
||||
return QString(data);
|
||||
|
|
Loading…
Reference in New Issue
Block a user