mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-10-20 12:55:43 +08:00
netutils/netlib: 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
f31cc67da8
commit
3afd1234e0
@@ -72,7 +72,7 @@ int netlib_setnodeaddr(FAR const char *ifname,
|
||||
{
|
||||
/* Copy the network interface name */
|
||||
|
||||
strncpy(req.pifr_name, ifname, IFNAMSIZ);
|
||||
strlcpy(req.pifr_name, ifname, IFNAMSIZ);
|
||||
|
||||
/* Copy the node address into the request */
|
||||
|
||||
|
Reference in New Issue
Block a user