From: Jaroslav Kysela Date: Thu, 12 Oct 2006 09:04:38 +0000 (+0200) Subject: aplay/arecord -L command: process properly end-of-line characters X-Git-Tag: v1.0.14rc1~8 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=eee0b78320c382ee23b133fda19dcb9f5520f9e1;p=alsa-utils.git aplay/arecord -L command: process properly end-of-line characters --- diff --git a/aplay/aplay.c b/aplay/aplay.c index 79bbd19..f21d71a 100644 --- a/aplay/aplay.c +++ b/aplay/aplay.c @@ -294,8 +294,17 @@ static void pcm_list(void) goto __end; } printf("%s\n", *n); - if (delim) - printf(" %s\n", delim + 1); + if (delim++) { + printf(" "); + while (*delim) { + if (*delim == '\n') + printf("\n "); + else + putchar(*delim); + delim++; + } + putchar('\n'); + } __end: n++; }