From: Andre Date: Mon, 17 Apr 2006 17:16:18 +0000 (+0200) Subject: replace memcpy by memmove X-Git-Tag: v0.2.12~81 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=d6aab2f273e8b54bf351c3b73b4a50168c8be917 replace memcpy by memmove as the areas in question may overlap --- 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)