From daa06abd34981a09aaecd85307b5719ca34f6034 Mon Sep 17 00:00:00 2001 From: Yu-Chen Lin Date: Sat, 4 Dec 2021 10:54:21 +0800 Subject: [PATCH] Fix comment in control message serialization Refs 245999aec4a4a1454212b38a988aa96fa701bb04 Signed-off-by: Yu-Chen Lin Signed-off-by: Romain Vimont --- app/src/control_msg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/control_msg.c b/app/src/control_msg.c index 7fd77631..d2957467 100644 --- a/app/src/control_msg.c +++ b/app/src/control_msg.c @@ -69,7 +69,7 @@ write_position(uint8_t *buf, const struct sc_position *position) { buffer_write16be(&buf[10], position->screen_size.height); } -// write length (2 bytes) + string (non nul-terminated) +// write length (4 bytes) + string (non null-terminated) static size_t write_string(const char *utf8, size_t max_len, unsigned char *buf) { size_t len = sc_str_utf8_truncation_index(utf8, max_len);