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;