mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 08:51:10 +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:
@@ -325,7 +325,7 @@ void XMLTreeNode::SetData(char *dat, unsigned int datSize)
|
||||
data=new char[dataSize+1];
|
||||
data[dataSize]=0;
|
||||
|
||||
memcpy(data, dat, datSize);
|
||||
memmove(data, dat, datSize);
|
||||
}
|
||||
|
||||
void XMLTreeNode::AppendData(char *dat, unsigned int datSize)
|
||||
@@ -337,8 +337,8 @@ void XMLTreeNode::AppendData(char *dat, unsigned int datSize)
|
||||
char *tmp;
|
||||
|
||||
tmp=new char[dataSize+datSize];
|
||||
memcpy(tmp, data, dataSize);
|
||||
memcpy(tmp+dataSize, dat, datSize);
|
||||
memmove(tmp, data, dataSize);
|
||||
memmove(tmp+dataSize, dat, datSize);
|
||||
|
||||
SetData(tmp, dataSize+datSize);
|
||||
|
||||
|
Reference in New Issue
Block a user