mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
The RFB ServerInit message carries the desktop name as a length-prefixed field. vncviewer caps the copied name to fit conn->name, but it must still consume the remaining bytes from the socket when the advertised name is longer than the local buffer. Drain the unused suffix so the next RFB message is read from the correct boundary. Reuse the same discard helper for other skipped RFB payloads. Signed-off-by: Old-Ding <ai.neo.ae86@gmail.com> |
||
|---|---|---|
| .. | ||
| CMakeLists.txt | ||
| Kconfig | ||
| lcd_render.c | ||
| lcd_render.h | ||
| Make.defs | ||
| Makefile | ||
| rfb_protocol.c | ||
| rfb_protocol.h | ||
| vncviewer_main.c | ||