nuttx-apps/examples/poll
Old-Ding 50ffee7a85 examples: Fix network echo receive terminators
The netloop and poll TCP echo examples receive up to IOBUFFER_SIZE bytes and then append a NUL terminator before logging the data. A full-size receive can therefore write one byte past the input buffer.

Reserve one extra byte in the buffers that are terminated after recv(). Keep the receive limit and echo length capped at IOBUFFER_SIZE so the data path is unchanged.

Signed-off-by: Old-Ding <ai.neo.ae86@gmail.com>
2026-07-09 09:27:18 +08:00
..
CMakeLists.txt
host.c examples: Fix network echo receive terminators 2026-07-09 09:27:18 +08:00
Kconfig
Make.defs
Makefile
Makefile.host
net_listener.c examples: Fix network echo receive terminators 2026-07-09 09:27:18 +08:00
net_reader.c examples: Fix network echo receive terminators 2026-07-09 09:27:18 +08:00
poll_internal.h
poll_listener.c include/debug.h: Use <nuttx/debug.h> in apps 2026-04-11 10:39:27 -03:00
poll_main.c include/debug.h: Use <nuttx/debug.h> in apps 2026-04-11 10:39:27 -03:00
select_listener.c include/debug.h: Use <nuttx/debug.h> in apps 2026-04-11 10:39:27 -03:00