From 2074a7ab03db93f609e4c0d808e51ebbda601cf9 Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Thu, 10 Aug 2006 06:33:18 +0000 Subject: [PATCH] backport: memmove for overlapping mem copies. --- src/drv_imap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;