aboutsummaryrefslogtreecommitdiff
path: root/user_command.h
diff options
context:
space:
mode:
authorBen Burwell <bburwell1@gmail.com>2013-05-01 21:45:26 -0400
committerBen Burwell <bburwell1@gmail.com>2013-05-01 21:45:26 -0400
commit79ed73cafa1d78087286277b3df8872c4989a64a (patch)
treed095df448e0844dc51dbf488c6bf089f8ed62c46 /user_command.h
parent61696c62d19356ed6133887ebb947e6e1f0a1467 (diff)
Stop sending newline char at end of SESMSG
Diffstat (limited to 'user_command.h')
-rw-r--r--user_command.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/user_command.h b/user_command.h
index 2e73c90..9e0df5a 100644
--- a/user_command.h
+++ b/user_command.h
@@ -61,6 +61,9 @@ void process_user_command() {
strcpy(out_buf, "SESMSG:");
strcat(out_buf, command);
+
+ out_buf[strlen(out_buf)-1] = '\0';
+
send(client_s, out_buf, strlen(out_buf)+1, 0);
}