mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-10-18 08:52:01 +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
@@ -75,7 +75,7 @@ int netlib_setessid(FAR const char *ifname, FAR const char *essid)
|
||||
|
||||
/* Put the driver name into the request */
|
||||
|
||||
strncpy(req.ifr_name, ifname, IFNAMSIZ);
|
||||
strlcpy(req.ifr_name, ifname, IFNAMSIZ);
|
||||
|
||||
/* Put the new ESSID into the request */
|
||||
|
||||
|
Reference in New Issue
Block a user