From d6aab2f273e8b54bf351c3b73b4a50168c8be917 Mon Sep 17 00:00:00 2001 From: Andre Date: Mon, 17 Apr 2006 19:16:18 +0200 Subject: [PATCH] replace memcpy by memmove as the areas in question may overlap --- play.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/play.c b/play.c index 713a1a69..ad522a95 100644 --- a/play.c +++ b/play.c @@ -263,7 +263,7 @@ again: loaded -= ret; } if (loaded && p != audiobuf) - memcpy(audiobuf, p, loaded); + memmove(audiobuf, p, loaded); read: ret = read(STDIN_FILENO, audiobuf + loaded, bufsize - loaded); if (ret < 0) -- 2.39.5