From: Lennart Poettering Date: Thu, 1 May 2008 19:06:15 +0000 (+0000) Subject: strip CRLF line breaks from read CLI commands. This should fix the cli interface... X-Git-Tag: v0.9.11~63^2^2~82 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=264385aae4683a47b15aa37a3949796be72870d1;p=platform%2Fupstream%2Fpulseaudio.git 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 --- diff --git a/src/pulsecore/ioline.c b/src/pulsecore/ioline.c index 860a651..6d11e4f 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; }