X-Git-Url: http://git.pk910.de/?p=NextIRCd.git;a=blobdiff_plain;f=src%2Fircd_client.c;h=9ef6451131669355d1da8a5eb943fb1df3c19870;hp=3ae6e50e0697c9475ef28fbd1659baba67bcfb23;hb=d7385887d5b489a515a111235eae339a4284d81e;hpb=fb7e6a4977b97c21b06b80171325d518659b38ed 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) {