aplay/arecord -L command: process properly end-of-line characters

This commit is contained in:
Jaroslav Kysela 2006-10-12 11:04:38 +02:00
parent 0b70f2e606
commit eee0b78320

View file

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