From 7764a836f1ee02a4540cfc4118c20729018daaac Mon Sep 17 00:00:00 2001 From: Romain Vimont Date: Tue, 22 Jan 2019 09:38:51 +0100 Subject: [PATCH] Fix incorrect comment Comment had not been updated along with the code. --- app/src/control_event.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/control_event.c b/app/src/control_event.c index 34b71fb0..015ce786 100644 --- a/app/src/control_event.c +++ b/app/src/control_event.c @@ -23,7 +23,7 @@ int control_event_serialize(const struct control_event *event, unsigned char *bu buffer_write32be(&buf[6], event->keycode_event.metastate); return 10; case CONTROL_EVENT_TYPE_TEXT: { - // write length (1 byte) + date (non nul-terminated) + // write length (2 bytes) + string (non nul-terminated) size_t len = strlen(event->text_event.text); if (len > TEXT_MAX_LENGTH) { // injecting a text takes time, so limit the text length