commit 2074a7ab03db93f609e4c0d808e51ebbda601cf9
Author: Oswald Buddenhagen <o...@users.sf.net>
Date:   Thu Aug 10 06:33:18 2006 +0000

    backport: memmove for overlapping mem copies.

 src/drv_imap.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/drv_imap.c b/src/drv_imap.c
index b8a4e5b..2a84f3d 100644
--- a/src/drv_imap.c
+++ b/src/drv_imap.c
@@ -376,7 +376,7 @@ buffer_gets( buffer_t * b, char **s )
                                n = b->bytes - start;
 
                                if (n)
-                                       memcpy( b->buf, b->buf + start, n );
+                                       memmove( b->buf, b->buf + start, n );
                                b->offset -= start;
                                b->bytes = n;
                                start = 0;

------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
_______________________________________________
isync-devel mailing list
isync-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/isync-devel

Reply via email to