From bccebc59a02e235f2688379853a490e6f4401eba Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Fri, 5 Mar 2021 21:29:29 +0100 Subject: [PATCH] aplay: fix the wrong pointer dereference in playbackv_go() BugLink: https://github.com/alsa-project/alsa-utils/issues/70 Signed-off-by: Jaroslav Kysela --- aplay/aplay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {