From: havoc Date: Thu, 18 Nov 2010 01:53:31 +0000 (+0000) Subject: fix proquake rcon replies - use NetConn_Write, not NetConn_WriteString X-Git-Tag: xonotic-v0.1.0preview~65 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=3e31d9fc419b32cb1a6d19fc5bcc2d88cedb53f7;p=xonotic%2Fdarkplaces.git fix proquake rcon replies - use NetConn_Write, not NetConn_WriteString git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10604 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=5e61ba1b0bf8387dc28a22dce5e236a558c140b3 --- diff --git a/console.c b/console.c index 4421def8..ccdd38da 100644 --- a/console.c +++ b/console.c @@ -914,7 +914,7 @@ void Con_Rcon_Redirect_Flush(void) // update the length in the packet header StoreBigLong((unsigned char *)rcon_redirect_buffer, NETFLAG_CTL | (rcon_redirect_bufferpos & NETFLAG_LENGTH_MASK)); } - NetConn_WriteString(rcon_redirect_sock, rcon_redirect_buffer, rcon_redirect_dest); + NetConn_Write(rcon_redirect_sock, rcon_redirect_buffer, rcon_redirect_bufferpos, rcon_redirect_dest); memcpy(rcon_redirect_buffer, "\377\377\377\377n", 5); // QW rcon print rcon_redirect_bufferpos = 5; rcon_redirect_proquakeprotocol = false;