diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2017-07-07 09:29:24 -0700 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2017-07-07 09:29:24 -0700 |
commit | 69922b6c39efd3c23b5cdc82df8e7db63ad0888b (patch) | |
tree | 7821dec21b6bab177b6e68a1f65cf465bf36fbfc | |
parent | 6fc70f7c16da968a63e69798bbc73ada442cfd2a (diff) | |
download | infinitytier-69922b6c39efd3c23b5cdc82df8e7db63ad0888b.tar.gz infinitytier-69922b6c39efd3c23b5cdc82df8e7db63ad0888b.zip |
BSD build fix.
-rw-r--r-- | osdep/BSDEthernetTap.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/osdep/BSDEthernetTap.cpp b/osdep/BSDEthernetTap.cpp index 8e57d605..c0fdad9c 100644 --- a/osdep/BSDEthernetTap.cpp +++ b/osdep/BSDEthernetTap.cpp @@ -227,7 +227,8 @@ static bool ___removeIp(const std::string &_dev,const InetAddress &ip) { long cpid = (long)vfork(); if (cpid == 0) { - execl("/sbin/ifconfig","/sbin/ifconfig",_dev.c_str(),"inet",ip.toIpString().c_str(),"-alias",(const char *)0); + char ipbuf[64]; + execl("/sbin/ifconfig","/sbin/ifconfig",_dev.c_str(),"inet",ip.toIpString(ipbuf),"-alias",(const char *)0); _exit(-1); } else if (cpid > 0) { int exitcode = -1; |