From 54cb53122abba1b4a50cdee88376abc1d60425c8 Mon Sep 17 00:00:00 2001 From: Nodir Temirkhodjaev Date: Thu, 30 Aug 2018 16:12:00 +0500 Subject: [PATCH] Minor fix --- src/ui/control/controlworker.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/control/controlworker.cpp b/src/ui/control/controlworker.cpp index 73b97d26..c4c61b87 100644 --- a/src/ui/control/controlworker.cpp +++ b/src/ui/control/controlworker.cpp @@ -71,7 +71,7 @@ bool ControlWorker::writeData(const QByteArray &data) *p++ = dataSize; if (dataSize != 0) { - memcpy(p, data.constData(), data.size()); + memcpy(p, data.constData(), dataSize); } return true;