From: Pierre Habouzit Date: Wed, 29 Aug 2007 17:05:58 +0000 (+0200) Subject: Small fix: tcp_table(5) should not end with \r\n but \n. X-Git-Url: http://git.madism.org/?a=commitdiff_plain;h=0c1e21b970eada8cc51f5e673e9d67ede0356664;p=apps%2Fpfixtools.git Small fix: tcp_table(5) should not end with \r\n but \n. Signed-off-by: Pierre Habouzit --- 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);