From d7385887d5b489a515a111235eae339a4284d81e Mon Sep 17 00:00:00 2001 From: pk910 Date: Wed, 16 Jul 2014 00:20:45 +0200 Subject: [PATCH] small fix --- src/ircd_client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ircd_client.c b/src/ircd_client.c index 3ae6e50..9ef6451 100644 --- a/src/ircd_client.c +++ b/src/ircd_client.c @@ -38,7 +38,7 @@ static void client_printf(struct Connection *conn, const char *text, ...) { if (pos < 0 || pos > (CLIENT_MAXLEN - 2)) pos = CLIENT_MAXLEN - 2; sendBuf[pos] = '\n'; sendBuf[pos+1] = '\0'; - socket_send(conn, sendBuf, pos); + socket_send(conn, sendBuf, pos+1); } void client_connected(struct Connection *conn) { -- 2.20.1