From d95d025a1bbfcdd43f1d13e1aedceed53c28d7cf Mon Sep 17 00:00:00 2001 From: Andrey Nazarov Date: Sun, 7 Oct 2007 21:08:14 +0000 Subject: Use MSG_WriteData instead of MSG_WriteString when possible. Dropped check for \xff byte inside MSG_WriteString, clients nowadays should not use 3.20 anyway. --- source/mvd_parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/mvd_parse.c') diff --git a/source/mvd_parse.c b/source/mvd_parse.c index 348fca3..2b5731f 100644 --- a/source/mvd_parse.c +++ b/source/mvd_parse.c @@ -608,7 +608,7 @@ static void MVD_ParseConfigstring( mvd_t *mvd ) { MSG_WriteByte( svc_configstring ); MSG_WriteShort( index ); - MSG_WriteString( string ); + MSG_WriteData( string, length + 1 ); // broadcast configstring change LIST_FOR_EACH( udpClient_t, client, &mvd->udpClients, entry ) { -- cgit v1.2.3