fix proquake rcon replies - use NetConn_Write, not NetConn_WriteString
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 18 Nov 2010 01:53:31 +0000 (01:53 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 18 Nov 2010 01:53:31 +0000 (01:53 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10604 d7cf8633-e32d-0410-b094-e92efae38249

console.c

index 4421def..ccdd38d 100644 (file)
--- 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;