Browse Source

backport: memmove for overlapping mem copies.

1.0
Oswald Buddenhagen 19 years ago
parent
commit
2074a7ab03
  1. 2
      src/drv_imap.c

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

Loading…
Cancel
Save