1
0
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:
tux3 2016-11-22 12:52:35 +01:00
parent 8f01505740
commit a4bda26525
No known key found for this signature in database
GPG Key ID: 7E086DD661263264

View File

@ -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);