summaryrefslogtreecommitdiff
path: root/source/mvd_parse.c
diff options
context:
space:
mode:
authorAndrey Nazarov <skuller@skuller.net>2007-10-07 21:08:14 +0000
committerAndrey Nazarov <skuller@skuller.net>2007-10-07 21:08:14 +0000
commitd95d025a1bbfcdd43f1d13e1aedceed53c28d7cf (patch)
treed6a9241af6ab21337ed8d782d508efe539772c01 /source/mvd_parse.c
parente2a278c4a223328ac8c90d8c2b8b7c86cf095fa1 (diff)
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.
Diffstat (limited to 'source/mvd_parse.c')
-rw-r--r--source/mvd_parse.c2
1 files changed, 1 insertions, 1 deletions
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 ) {