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
This commit is contained in:
Lennart Poettering 2008-05-01 19:06:15 +00:00
parent f49df7a3b0
commit 264385aae4

View file

@ -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;
}