From 0c1e21b970eada8cc51f5e673e9d67ede0356664 Mon Sep 17 00:00:00 2001 From: Pierre Habouzit Date: Wed, 29 Aug 2007 19:05:58 +0200 Subject: [PATCH] Small fix: tcp_table(5) should not end with \r\n but \n. Signed-off-by: Pierre Habouzit --- srsd.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/srsd.c b/srsd.c index 4004c13..aa953fc 100644 --- a/srsd.c +++ b/srsd.c @@ -112,7 +112,6 @@ int process_srs(srs_t *srs, const char *domain, srsd_t *srsd) if (err == 0) { buffer_addstr(&srsd->obuf, "200 "); buffer_addstr(&srsd->obuf, buf); - buffer_addstr(&srsd->obuf, "\r\n"); } else { switch (SRS_ERROR_TYPE(err)) { case SRS_ERRTYPE_SRS: @@ -124,8 +123,8 @@ int process_srs(srs_t *srs, const char *domain, srsd_t *srsd) break; } buffer_addstr(&srsd->obuf, srs_strerror(err)); - buffer_addstr(&srsd->obuf, "\r\n"); } + buffer_addch(&srsd->obuf, '\n'); skip: buffer_consume(&srsd->ibuf, nl - srsd->ibuf.data); -- 2.20.1