From 264385aae4683a47b15aa37a3949796be72870d1 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 1 May 2008 19:06:15 +0000 Subject: [PATCH] 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 --- src/pulsecore/ioline.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.7.4