mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-28 16:01:10 +02:00
memcpy -> memmove
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1278 e54a6e83-5905-42d5-8d5c-058d10e6a962
Origin commit data
------------------
Commit: 85f5e1110d
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2011-03-09 (Wed, 09 Mar 2011)
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