[vlc-commits] interlacing: fix overlapping memory copy

Rémi Denis-Courmont git at videolan.org
Fri Nov 14 18:39:34 CET 2014


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Fri Nov 14 19:39:19 2014 +0200| [b9bbad562a0292e8c3927d5d26b32b68e491f352] | committer: Rémi Denis-Courmont

interlacing: fix overlapping memory copy

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b9bbad562a0292e8c3927d5d26b32b68e491f352
---

 src/video_output/interlacing.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/video_output/interlacing.c b/src/video_output/interlacing.c
index 13ec36f..a241d7f 100644
--- a/src/video_output/interlacing.c
+++ b/src/video_output/interlacing.c
@@ -103,7 +103,7 @@ static void DeinterlaceRemove(vout_thread_t *vout)
     /* */
     strcpy(&start[0], &start[strlen("deinterlace")]);
     if (*start == ':')
-        strcpy(&start[0], &start[1]);
+        memmove(start, start + 1, strlen(start + 1));
 
     var_SetString(vout, "video-filter", filter);
     free(filter);



More information about the vlc-commits mailing list