From 3f5077606220972e14c2f281e3fda870f23b0b79 Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Wed, 29 Jun 2016 15:48:02 -0400 Subject: [PATCH] ugh --- util.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/util.cpp b/util.cpp index dc7b32d7..18a1685e 100644 --- a/util.cpp +++ b/util.cpp @@ -437,8 +437,7 @@ namespace net char * addr = new char[sz]; addr[sz-1] = 0; // this probably won't screw up (right?) - inet_ntop(af, cur->ifa_addr->sa_data, addr, sz); - std::string cur_ifaddr(addr); + std::string cur_ifaddr = inet_ntop(af, cur->ifa_addr->sa_data, addr, sz); freeifaddrs(addrs); return boost::asio::ip::address::from_string(cur_ifaddr); }