summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2017-04-21 12:42:51 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2017-04-21 12:42:51 -0700
commit8542ee59db85e4cb86c1b6fc9ac2330f24129de4 (patch)
treefa7bb627c19cf01971f99a44e1e05a3bcd1c917c
parent76108671f6f216f984571259900823fac82d73d5 (diff)
downloadinfinitytier-8542ee59db85e4cb86c1b6fc9ac2330f24129de4.tar.gz
infinitytier-8542ee59db85e4cb86c1b6fc9ac2330f24129de4.zip
Windows crash fix.
-rw-r--r--service/OneService.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/service/OneService.cpp b/service/OneService.cpp
index a9185eea..b151d25d 100644
--- a/service/OneService.cpp
+++ b/service/OneService.cpp
@@ -988,7 +988,7 @@ public:
std::map<uint64_t,NetworkState>::const_iterator n(_nets.find(nwid));
if (n == _nets.end())
return false;
- memcpy(&settings,&(n->second.settings),sizeof(NetworkSettings));
+ settings = n->second.settings;
return true;
}
@@ -999,7 +999,7 @@ public:
std::map<uint64_t,NetworkState>::iterator n(_nets.find(nwid));
if (n == _nets.end())
return false;
- memcpy(&(n->second.settings),&settings,sizeof(NetworkSettings));
+ n->second.settings = settings;
char nlcpath[256];
Utils::snprintf(nlcpath,sizeof(nlcpath),"%s" ZT_PATH_SEPARATOR_S "networks.d" ZT_PATH_SEPARATOR_S "%.16llx.local.conf",_homePath.c_str(),nwid);