mirror of
https://github.com/apache/nuttx.git
synced 2026-05-22 22:20:01 +08:00
net:fix coverity warning
Signed-off-by: hejianliang3 <hejianliang3@xiaomi.com>
This commit is contained in:
committed by
Petro Karashchenko
parent
451c53daa4
commit
e9648d8a73
@@ -1086,7 +1086,7 @@ static int netdev_ifr_ioctl(FAR struct socket *psock, int cmd,
|
||||
dev = netdev_findbyindex(req->ifr_ifindex);
|
||||
if (dev != NULL)
|
||||
{
|
||||
strncpy(req->ifr_name, dev->d_ifname, IFNAMSIZ);
|
||||
strlcpy(req->ifr_name, dev->d_ifname, IFNAMSIZ);
|
||||
ret = OK;
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user