From 76d82c19ad186dbaa9d3054bc1f71c5d2f152e56 Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Tue, 4 Nov 2014 21:57:37 +0100 Subject: [PATCH] Fix sending null char after ERROR when the server is full --- src/listener.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/listener.c b/src/listener.c index 4988de9e..c513645e 100644 --- a/src/listener.c +++ b/src/listener.c @@ -531,7 +531,7 @@ accept_precallback(rb_fde_t *F, struct sockaddr *addr, rb_socklen_t addrlen, voi last_oper_notice = rb_current_time(); } - rb_write(F, "ERROR :All connections in use\r\n", 32); + rb_write(F, "ERROR :All connections in use\r\n", 31); rb_close(F); return 0; }