mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-10-18 17:32:09 +08:00
Fix error: 'strncpy' specified bound 16 equals destination size
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:

committed by
Petro Karashchenko

parent
5451214d0b
commit
0426c8c09f
@@ -70,7 +70,7 @@ int netlib_set_ipv6netmask(FAR const char *ifname,
|
||||
|
||||
/* Add the device name to the request */
|
||||
|
||||
strncpy(req.lifr_name, ifname, IFNAMSIZ);
|
||||
strlcpy(req.lifr_name, ifname, IFNAMSIZ);
|
||||
|
||||
/* Add the INET address to the request */
|
||||
|
||||
|
Reference in New Issue
Block a user