From 9ae287e5df1e5f6a1aeffb1591fd71aefcd59f36 Mon Sep 17 00:00:00 2001 From: Barry <870709864@qq.com> Date: Wed, 12 Jun 2019 07:07:10 +0800 Subject: [PATCH] fix:incorrect comment --- QtScrcpy/inputcontrol/controlevent.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/QtScrcpy/inputcontrol/controlevent.cpp b/QtScrcpy/inputcontrol/controlevent.cpp index 70b5e44..e745774 100644 --- a/QtScrcpy/inputcontrol/controlevent.cpp +++ b/QtScrcpy/inputcontrol/controlevent.cpp @@ -17,7 +17,7 @@ void ControlEvent::setKeycodeEventData(AndroidKeyeventAction action, AndroidKeyc void ControlEvent::setTextEventData(QString text) { - // write length (2 byte) + date (non nul-terminated) + // write length (2 byte) + string (non nul-terminated) if (TEXT_MAX_CHARACTER_LENGTH < text.length()) { // injecting a text takes time, so limit the text length text = text.left(TEXT_MAX_CHARACTER_LENGTH);