aplay: fix the wrong pointer dereference in playbackv_go()

BugLink: https://github.com/alsa-project/alsa-utils/issues/70
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Jaroslav Kysela 2021-03-05 21:29:29 +01:00
parent c867aa8a84
commit bccebc59a0

View file

@ -3343,7 +3343,7 @@ static void playbackv_go(int* fds, unsigned int channels, size_t loaded, off64_t
do { do {
r = safe_read(fds[0], bufs[0], expected); r = safe_read(fds[0], bufs[0], expected);
if (r < 0) { if (r < 0) {
perror(names[channel]); perror(names[0]);
prg_exit(EXIT_FAILURE); prg_exit(EXIT_FAILURE);
} }
for (channel = 1; channel < channels; ++channel) { for (channel = 1; channel < channels; ++channel) {