From 788fdf35246001ba4178dcac7665954479871f48 Mon Sep 17 00:00:00 2001 From: "M. Kristall" Date: Sat, 3 Oct 2009 12:25:02 +0000 Subject: * (bug 3416) Overlapping strings with strcpy (thanks Jacques Boscq) * (bug 3576) Allow % since people promise it is safe (/dev/humancontroller) --- src/server/sv_net_chan.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/server') diff --git a/src/server/sv_net_chan.c b/src/server/sv_net_chan.c index e1d835d3..0de49d4f 100644 --- a/src/server/sv_net_chan.c +++ b/src/server/sv_net_chan.c @@ -65,7 +65,7 @@ static void SV_Netchan_Encode( client_t *client, msg_t *msg ) { // modify the key with the last received and with this message acknowledged client command if (!string[index]) index = 0; - if (string[index] > 127 || string[index] == '%') { + if (string[index] > 127) { key ^= '.' << (i & 1); } else { @@ -115,7 +115,7 @@ static void SV_Netchan_Decode( client_t *client, msg_t *msg ) { // modify the key with the last sent and acknowledged server command if (!string[index]) index = 0; - if (string[index] > 127 || string[index] == '%') { + if (string[index] > 127) { key ^= '.' << (i & 1); } else { -- cgit