mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 07:51:19 +02:00
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:
@@ -86,7 +86,7 @@ void packet_stdout (int fd, unsigned char * buf, int count, void * /*p*/)
|
||||
/* send buffer is not empty, so copy from
|
||||
input buffer to get a complete packet */
|
||||
if (writebuf_size) {
|
||||
memcpy(writebuf + writebuf_size, buf, size);
|
||||
memmove(writebuf + writebuf_size, buf, size);
|
||||
bp = writebuf;
|
||||
}
|
||||
|
||||
@@ -127,7 +127,7 @@ void packet_stdout (int fd, unsigned char * buf, int count, void * /*p*/)
|
||||
* then store them in the send buffer and increase send
|
||||
* buffer size */
|
||||
if (count) {
|
||||
memcpy(writebuf + writebuf_size, buf, count);
|
||||
memmove(writebuf + writebuf_size, buf, count);
|
||||
writebuf_size += count;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user