From: pk910 Date: Tue, 15 Jul 2014 22:20:45 +0000 (+0200) Subject: small fix X-Git-Url: http://git.pk910.de/?p=NextIRCd.git;a=commitdiff_plain;h=d7385887d5b489a515a111235eae339a4284d81e small fix --- 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) {