- use list append in more places (preferred method since its faster)
[blender-staging.git] / source / blender / nodes / intern / CMP_util.c
index bcb038bccc311388ca4ca7f389be165c7d1d452e..9edcc8b0eecc4a2151d141dd56beaa21c18f5060 100644 (file)
@@ -62,7 +62,7 @@ CompBuf *dupalloc_compbuf(CompBuf *cbuf)
 {
        CompBuf *dupbuf= alloc_compbuf(cbuf->x, cbuf->y, cbuf->type, 1);
        if(dupbuf) {
-               memcpy(dupbuf->rect, cbuf->rect, cbuf->type*sizeof(float)*cbuf->x*cbuf->y);
+               memmove(dupbuf->rect, cbuf->rect, cbuf->type*sizeof(float)*cbuf->x*cbuf->y);
        
                dupbuf->xof= cbuf->xof;
                dupbuf->yof= cbuf->yof;