From 54dcec831b35e04d196b1195a7e2c7221d77e17c Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Tue, 31 Aug 2010 12:15:38 +0000 Subject: [PATCH] host_cmd.c: minor tidy up, nothing serious. git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@318 af15c1b1-3010-417e-b628-4374ebc0bcbd --- Quake/host_cmd.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Quake/host_cmd.c b/Quake/host_cmd.c index 77bf14ed..989bc75d 100644 --- a/Quake/host_cmd.c +++ b/Quake/host_cmd.c @@ -1280,9 +1280,9 @@ void Host_Version_f (void) void Host_Say(qboolean teamonly) { - client_t *client; - client_t *save; int j; + client_t *client; + client_t *save; const char *p; char text[MAXCMDLINE], *p2; qboolean quoted; @@ -1310,7 +1310,7 @@ void Host_Say(qboolean teamonly) p = Cmd_Args(); // remove quotes if present quoted = false; - if (*p == '"') + if (*p == '\"') { p++; quoted = true; @@ -1322,7 +1322,7 @@ void Host_Say(qboolean teamonly) q_snprintf (text, sizeof(text), "\001<%s> %s", hostname.string, p); // check length & truncate if necessary - j = Q_strlen(text); + j = strlen(text); if (j >= sizeof(text) - 1) { text[sizeof(text) - 2] = '\n'; @@ -1373,11 +1373,11 @@ void Host_Say_Team_f(void) void Host_Tell_f(void) { - client_t *client; - client_t *save; int j; + client_t *client; + client_t *save; const char *p; - char text[MAXCMDLINE], *p2; + char text[MAXCMDLINE], *p2; qboolean quoted; if (cmd_source == src_command) @@ -1392,7 +1392,7 @@ void Host_Tell_f(void) p = Cmd_Args(); // remove quotes if present quoted = false; - if (*p == '"') + if (*p == '\"') { p++; quoted = true; @@ -1400,7 +1400,7 @@ void Host_Tell_f(void) q_snprintf (text, sizeof(text), "%s: %s", host_client->name, p); // check length & truncate if necessary - j = Q_strlen(text); + j = strlen(text); if (j >= sizeof(text) - 1) { text[sizeof(text) - 2] = '\n';