summaryrefslogtreecommitdiff
path: root/src/net_client.c
diff options
context:
space:
mode:
authorSimon Howard2006-03-07 12:57:52 +0000
committerSimon Howard2006-03-07 12:57:52 +0000
commitb2a2c312907d214aacaa11f97a217e4a42cfe683 (patch)
tree1dbcc49a12fdf6055b602d41ca94969a1dea345c /src/net_client.c
parentedc20cc64e1930bdcc9466063e17f91519492a37 (diff)
downloadchocolate-doom-b2a2c312907d214aacaa11f97a217e4a42cfe683.tar.gz
chocolate-doom-b2a2c312907d214aacaa11f97a217e4a42cfe683.tar.bz2
chocolate-doom-b2a2c312907d214aacaa11f97a217e4a42cfe683.zip
Convert NET_CL_SafePuts to NET_SafePuts, and print rejection messages
from the server. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 411
Diffstat (limited to 'src/net_client.c')
-rw-r--r--src/net_client.c15
1 files changed, 2 insertions, 13 deletions
diff --git a/src/net_client.c b/src/net_client.c
index 379a5a78..fecae5be 100644
--- a/src/net_client.c
+++ b/src/net_client.c
@@ -1,7 +1,7 @@
// Emacs style mode select -*- C++ -*-
//-----------------------------------------------------------------------------
//
-// $Id: net_client.c 410 2006-03-07 12:46:52Z fraggle $
+// $Id: net_client.c 411 2006-03-07 12:57:52Z fraggle $
//
// Copyright(C) 2005 Simon Howard
//
@@ -890,7 +890,6 @@ static void NET_CL_ParseResendRequest(net_packet_t *packet)
static void NET_CL_ParseConsoleMessage(net_packet_t *packet)
{
char *msg;
- char *p;
msg = NET_ReadString(packet);
@@ -899,17 +898,7 @@ static void NET_CL_ParseConsoleMessage(net_packet_t *packet)
return;
}
- // Do not do a straight "puts" of the string, as this could be
- // dangerous (sending control codes to terminals can do all
- // kinds of things)
-
- for (p=msg; *p; ++p)
- {
- if (isprint(*p))
- putchar(*p);
- }
-
- putchar('\n');
+ NET_SafePuts(msg);
}
// parse a received packet