Browse Source

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
0.10
Philip Kaufmann 10 years ago
parent
commit
cd4d3f1915
  1. 2
      src/net.cpp

2
src/net.cpp

@ -1559,7 +1559,7 @@ void static Discover(boost::thread_group& threadGroup) @@ -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;

Loading…
Cancel
Save