summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2008-05-01 19:06:15 +0000
committerLennart Poettering <lennart@poettering.net>2008-05-01 19:06:15 +0000
commit264385aae4683a47b15aa37a3949796be72870d1 (patch)
tree7e03700ae4412cc869f946bd055ec1dafc76d5ad
parentf49df7a3b09957585d4227390d4ba0929e7e29f2 (diff)
strip CRLF line breaks from read CLI commands. This should fix the cli interface for people accessing it via telnet.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2317 fefdeb5f-60dc-0310-8127-8f9354f1896f
-rw-r--r--src/pulsecore/ioline.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pulsecore/ioline.c b/src/pulsecore/ioline.c
index 860a6511..6d11e4fc 100644
--- a/src/pulsecore/ioline.c
+++ b/src/pulsecore/ioline.c
@@ -247,7 +247,7 @@ static void scan_for_lines(pa_ioline *l, size_t skip) {
l->rbuf_index = 0;
if (l->callback)
- l->callback(l, p, l->userdata);
+ l->callback(l, pa_strip_nl(p), l->userdata);
skip = 0;
}