summaryrefslogtreecommitdiff
path: root/imap-send.c
diff options
context:
space:
mode:
authorEdgar Toernig <froese@gmx.de>2006-10-31 01:39:17 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-10-31 01:39:17 (GMT)
commit173a9cbe7031bc3574b3f41cb2d2375cf959ff2a (patch)
tree70112f85fdab470e68d566beda970956c9c8d794 /imap-send.c
parent8d63d95f297446fe110ea76d350ae15676e2ed54 (diff)
downloadgit-173a9cbe7031bc3574b3f41cb2d2375cf959ff2a.zip
git-173a9cbe7031bc3574b3f41cb2d2375cf959ff2a.tar.gz
git-173a9cbe7031bc3574b3f41cb2d2375cf959ff2a.tar.bz2
Use memmove instead of memcpy for overlapping areas
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'imap-send.c')
-rw-r--r--imap-send.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/imap-send.c b/imap-send.c
index 16804ab..a6a6568 100644
--- a/imap-send.c
+++ b/imap-send.c
@@ -272,7 +272,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;