summaryrefslogtreecommitdiff
path: root/src/server
diff options
context:
space:
mode:
authorM. Kristall <mkpdev@gmail.com>2009-10-03 12:25:02 +0000
committerTim Angus <tim@ngus.net>2013-01-03 00:15:56 +0000
commit788fdf35246001ba4178dcac7665954479871f48 (patch)
treed6d61954d6a9c9380db3684a3b22a6780097e697 /src/server
parent198186fb98445ef4f27e89bd7489824500ab6eec (diff)
* (bug 3416) Overlapping strings with strcpy (thanks Jacques Boscq)
* (bug 3576) Allow % since people promise it is safe (/dev/humancontroller)
Diffstat (limited to 'src/server')
-rw-r--r--src/server/sv_net_chan.c4
1 files changed, 2 insertions, 2 deletions
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 {