projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d63d95
)
Use memmove instead of memcpy for overlapping areas
author
Edgar Toernig
<froese@gmx.de>
Tue, 31 Oct 2006 01:39:17 +0000
(17:39 -0800)
committer
Junio C Hamano
<junkio@cox.net>
Tue, 31 Oct 2006 01:39:17 +0000
(17:39 -0800)
Signed-off-by: Junio C Hamano <junkio@cox.net>
imap-send.c
patch
|
blob
|
history
diff --git
a/imap-send.c
b/imap-send.c
index 16804ab286a42c0dc2733dccf816ab2173e465af..a6a65680ee6daf062180d2580e83616cfff4cda4 100644
(file)
--- 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)
- mem
cpy( b->buf, b->buf + start, n
);
+ mem
move(b->buf, b->buf + start, n
);
b->offset -= start;
b->bytes = n;
start = 0;