strip CRLF line breaks from read CLI commands. This should fix the cli interface...
authorLennart Poettering <lennart@poettering.net>
Thu, 1 May 2008 19:06:15 +0000 (19:06 +0000)
committerLennart Poettering <lennart@poettering.net>
Thu, 1 May 2008 19:06:15 +0000 (19:06 +0000)
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2317 fefdeb5f-60dc-0310-8127-8f9354f1896f

src/pulsecore/ioline.c

index 860a651..6d11e4f 100644 (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;
     }