Build fix on Linux with G++.

This commit is contained in:
Adam Ierymenko 2014-02-11 23:09:53 +00:00
parent 0ad84b8723
commit 9acfd3eb73
2 changed files with 6 additions and 5 deletions

View file

@ -251,7 +251,7 @@ EthernetTap::EthernetTap(
bool recalledDevice = false;
if ((tag)&&(tag[0])) {
Utils::scopy(ifr.ifr_name,sizeof(ifr.ifr_name),tag);
Utils::snprintf(procpath,sizeof(procpath),"/proc/sys/net/ipv4/conf/%s",ifr.fr_name);
Utils::snprintf(procpath,sizeof(procpath),"/proc/sys/net/ipv4/conf/%s",ifr.ifr_name);
recalledDevice = (stat(procpath,&sbuf) != 0);
}
if (!recalledDevice) {