mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
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> |
||
|---|---|---|
| .. | ||
| CMakeLists.txt | ||
| Kconfig | ||
| Make.defs | ||
| Makefile | ||
| ustream.h | ||
| ustream_client.c | ||
| ustream_server.c | ||