memmove for overlapping mem copies.

This commit is contained in:
Oswald Buddenhagen 2006-08-10 06:33:18 +00:00
parent 1b9f8b4c69
commit 617d1a6e49

View File

@ -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;