Small fix: tcp_table(5) should not end with \r\n but \n.
authorPierre Habouzit <madcoder@debian.org>
Wed, 29 Aug 2007 17:05:58 +0000 (19:05 +0200)
committerPierre Habouzit <madcoder@debian.org>
Wed, 29 Aug 2007 17:05:58 +0000 (19:05 +0200)
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
srsd.c

diff --git a/srsd.c b/srsd.c
index 4004c13..aa953fc 100644 (file)
--- 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);