mirror of
https://github.com/introlab/rtabmap.git
synced 2026-10-05 17:47:49 +08:00
fixed warning
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user