diff options
author | Philip Kaufmann <phil.kaufmann@t-online.de> | 2014-11-13 15:23:15 +0100 |
---|---|---|
committer | Philip Kaufmann <phil.kaufmann@t-online.de> | 2014-11-13 15:26:09 +0100 |
commit | cd4d3f1915f56278d83ca00d7a970d08970f2fa4 (patch) | |
tree | 14fa3ce2a6708fbc26aac1b41a2d40427c082483 /src/net.cpp | |
parent | 8fa0494e9205e1c2151046010cc200c7c9ee022e (diff) |
Win32: change buffer size for gethotsname in Discover()
- 256 byte is the maximum, as per
http://msdn.microsoft.com/en-us/library/windows/desktop/ms738527%28v=vs.85%29.aspx
Diffstat (limited to 'src/net.cpp')
-rw-r--r-- | src/net.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net.cpp b/src/net.cpp index 695adeec54..6bf72d22c5 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -1559,7 +1559,7 @@ void static Discover(boost::thread_group& threadGroup) #ifdef WIN32 // Get local host IP - char pszHostName[1000] = ""; + char pszHostName[256] = ""; if (gethostname(pszHostName, sizeof(pszHostName)) != SOCKET_ERROR) { vector<CNetAddr> vaddr; |