From 617d1a6e4983a6c0903b46652ee502a804a312ee Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Thu, 10 Aug 2006 06:33:18 +0000 Subject: [PATCH] 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 44bc9f5..e0334e5 100644 --- a/src/drv_imap.c +++ b/src/drv_imap.c @@ -369,7 +369,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;