mirror of
https://github.com/alsa-project/alsa-utils
synced 2025-01-03 19:09:45 +01:00
aplay/arecord -L command: process properly end-of-line characters
This commit is contained in:
parent
0b70f2e606
commit
eee0b78320
1 changed files with 11 additions and 2 deletions
|
@ -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++;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue