- fix compiler warning + make debugging easier

This commit is contained in:
2022-10-30 18:36:06 +03:00
parent 1fbeae18c3
commit 83dd8f88b7
2 changed files with 5 additions and 2 deletions

View File

@@ -427,7 +427,7 @@ std::string NetworkAddress::ip() const
{
assert(mInitialized == true);
char resultbuf[160], ip6[160]; resultbuf[0] = 0;
char resultbuf[159], ip6[161]; resultbuf[0] = 0;
#ifdef TARGET_WIN
DWORD resultsize = sizeof(resultbuf);