projects
/
apps
/
pfixtools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
28f081e
)
Small fix: tcp_table(5) should not end with \r\n but \n.
author
Pierre Habouzit
<madcoder@debian.org>
Wed, 29 Aug 2007 17:05:58 +0000
(19:05 +0200)
committer
Pierre 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
patch
|
blob
|
history
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);