mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-27 15:32:52 +02:00
fix some strncpy warnings when build with gcc8
Origin commit data
------------------
Branch: ni/coolstream
Commit: 54ccbfc5d1
Author: GetAway <get-away@t-online.de>
Date: 2019-06-18 (Tue, 18 Jun 2019)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -46,7 +46,7 @@ static void device_up(std::string dev)
|
||||
|
||||
memset(&ifr, 0, sizeof ifr);
|
||||
|
||||
strncpy(ifr.ifr_name, dev.c_str(), IFNAMSIZ);
|
||||
strncpy(ifr.ifr_name, dev.c_str(), IFNAMSIZ-1);
|
||||
if (ioctl(sockfd, SIOCGIFFLAGS, &ifr) < 0)
|
||||
perror("SIOCGIFFLAGS");
|
||||
|
||||
|
Reference in New Issue
Block a user