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

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@226 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
sezero 2010-06-22 18:09:02 +00:00
parent dde3458f13
commit 94387b68a2

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);