fixed warning

This commit is contained in:
matlabbe
2026-05-26 11:38:07 -07:00
parent 26af228804
commit d8f787de4d
+2 -1
View File
@@ -177,7 +177,8 @@ private:
struct iwreq req;
struct iw_statistics stats;
strncpy(req.ifr_name, interfaceName_.c_str(), IFNAMSIZ);
strncpy(req.ifr_name, interfaceName_.c_str(), IFNAMSIZ - 1);
req.ifr_name[IFNAMSIZ - 1] = '\0';
//make room for the iw_statistics object
req.u.data.pointer = (caddr_t) &stats;