net_wins.c (WINS_GetLocalAddress): Make sure buff is null terminated.

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@226 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
Ozkan Sezer 2010-06-22 18:09:02 +00:00
parent 506774e2ad
commit bfe38b58b4
1 changed files with 1 additions and 0 deletions

View File

@ -80,6 +80,7 @@ static void WINS_GetLocalAddress (void)
if (gethostname(buff, MAXHOSTNAMELEN) == SOCKET_ERROR)
return;
buff[MAXHOSTNAMELEN - 1] = 0;
blocktime = Sys_FloatTime();
WSASetBlockingHook(BlockingHook);
local = gethostbyname(buff);