From: Jaroslav Kysela Date: Fri, 5 Mar 2021 20:29:29 +0000 (+0100) Subject: aplay: fix the wrong pointer dereference in playbackv_go() X-Git-Tag: v1.2.5~74 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=bccebc59a02e235f2688379853a490e6f4401eba;p=alsa-utils.git aplay: fix the wrong pointer dereference in playbackv_go() BugLink: https://github.com/alsa-project/alsa-utils/issues/70 Signed-off-by: Jaroslav Kysela --- diff --git a/aplay/aplay.c b/aplay/aplay.c index 9c827f4..9ebaae4 100644 --- a/aplay/aplay.c +++ b/aplay/aplay.c @@ -3343,7 +3343,7 @@ static void playbackv_go(int* fds, unsigned int channels, size_t loaded, off64_t do { r = safe_read(fds[0], bufs[0], expected); if (r < 0) { - perror(names[channel]); + perror(names[0]); prg_exit(EXIT_FAILURE); } for (channel = 1; channel < channels; ++channel) {