From 79ed73cafa1d78087286277b3df8872c4989a64a Mon Sep 17 00:00:00 2001 From: Ben Burwell Date: Wed, 1 May 2013 21:45:26 -0400 Subject: Stop sending newline char at end of SESMSG --- user_command.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'user_command.h') 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); } -- cgit v1.2.3