mirror of
https://github.com/apache/nuttx.git
synced 2026-05-30 13:27:01 +08:00
Fix rptun/rptun.c:572:7: warning: 'strncpy' specified bound 32 equals destination size
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
committed by
Petro Karashchenko
parent
cd516bd09d
commit
2277c18673
@@ -434,7 +434,7 @@ static void rptun_ns_bind(FAR struct rpmsg_device *rdev,
|
|||||||
FAR struct rptun_cb_s *cb;
|
FAR struct rptun_cb_s *cb;
|
||||||
|
|
||||||
bind->dest = dest;
|
bind->dest = dest;
|
||||||
strncpy(bind->name, name, RPMSG_NAME_SIZE);
|
strlcpy(bind->name, name, RPMSG_NAME_SIZE);
|
||||||
|
|
||||||
rptun_lock();
|
rptun_lock();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user