]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
replace memcpy by memmove
authorAndre <maan@p133.(none)>
Mon, 17 Apr 2006 17:16:18 +0000 (19:16 +0200)
committerAndre <maan@p133.(none)>
Mon, 17 Apr 2006 17:16:18 +0000 (19:16 +0200)
as the areas in question may overlap

play.c

diff --git a/play.c b/play.c
index 713a1a69d6f9b2b4e46798fed64239bb2502ecbd..ad522a9521a95d75e954697ed7b0e0244dfade53 100644 (file)
--- 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)