memcpy -> memmove

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1278 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
satbaby
2011-03-09 12:55:31 +00:00
parent 42fab7d679
commit 85f5e1110d
36 changed files with 134 additions and 134 deletions

View File

@@ -150,12 +150,12 @@ ringbuffer_read (ringbuffer_t * rb, char *dest, size_t cnt)
n2 = 0;
}
memcpy (dest, &(rb->buf[rb->read_ptr]), n1);
memmove (dest, &(rb->buf[rb->read_ptr]), n1);
rb->read_ptr += n1;
rb->read_ptr &= rb->size_mask;
if (n2) {
memcpy (dest + n1, &(rb->buf[rb->read_ptr]), n2);
memmove (dest + n1, &(rb->buf[rb->read_ptr]), n2);
rb->read_ptr += n2;
rb->read_ptr &= rb->size_mask;
}
@@ -190,12 +190,12 @@ ringbuffer_write (ringbuffer_t * rb, char *src, size_t cnt)
n2 = 0;
}
memcpy (&(rb->buf[rb->write_ptr]), src, n1);
memmove (&(rb->buf[rb->write_ptr]), src, n1);
rb->write_ptr += n1;
rb->write_ptr &= rb->size_mask;
if (n2) {
memcpy (&(rb->buf[rb->write_ptr]), src + n1, n2);
memmove (&(rb->buf[rb->write_ptr]), src + n1, n2);
rb->write_ptr += n2;
rb->write_ptr &= rb->size_mask;
}