Fix incorrect comment
Comment had not been updated along with the code.
This commit is contained in:
parent
0bfaf7b7ff
commit
7764a836f1
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue