nuttx-apps/examples/udgram
Old-Ding 850f481344 examples: fix local socket address lengths
The configured path size already includes its NUL terminator. Adding
another byte made the maximum address length exceed sockaddr_un, while
ustream could write at sun_path[UNIX_PATH_MAX].

Use the existing bounded copy length directly as the path portion of
the socket address and rely on strlcpy for termination.

Signed-off-by: Old-Ding <35417409+Old-Ding@users.noreply.github.com>
2026-07-13 12:28:07 +02:00
..
CMakeLists.txt examples: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
Kconfig
Make.defs examples: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
Makefile examples: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
udgram.h examples: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
udgram_client.c examples: fix local socket address lengths 2026-07-13 12:28:07 +02:00
udgram_server.c examples: fix local socket address lengths 2026-07-13 12:28:07 +02:00