Fix bug #713: Can't compile.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7848 4a71c877-e1ca-e34f-864e-861f7616d084master
parent
1907b3aa73
commit
924ef17242
|
@ -1706,14 +1706,14 @@ static bool NETrecvGAMESTRUCT(GAMESTRUCT* game)
|
|||
result = readNoInt(tcp_socket, buf+i, sizeof(buf)-i);
|
||||
if (result == SOCKET_ERROR || result <= 0)
|
||||
{
|
||||
debug(LOG_WARNING, "GAMESTRUCT recv failed; received %u bytes out of %lu", i, sizeof(buf));
|
||||
debug(LOG_WARNING, "GAMESTRUCT recv failed; received %u bytes out of %d", i, (int)sizeof(buf));
|
||||
return false;
|
||||
}
|
||||
i += result;
|
||||
}
|
||||
if (i != sizeof(buf))
|
||||
{
|
||||
debug(LOG_WARNING, "GAMESTRUCT recv size mismatch; received %u bytes; expecting %lu", i, sizeof(buf));
|
||||
debug(LOG_WARNING, "GAMESTRUCT recv size mismatch; received %u bytes; expecting %d", i, (int)sizeof(buf));
|
||||
return false;
|
||||
}
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue