some fixes (vector mem access)
git-svn-id: https://clonekeenplus.svn.sourceforge.net/svnroot/clonekeenplus/cgenius/trunk@99 4df4b0f3-56ce-47cb-b001-ed939b7d65a6
This commit is contained in:
@@ -47,7 +47,7 @@ bool CExeFile::readData()
|
||||
{
|
||||
m_datasize = decdata.size();
|
||||
m_data = new unsigned char[m_datasize];
|
||||
memcpy(m_data, decdata->data(), m_datasize);
|
||||
memcpy(m_data, &decdata[0], m_datasize);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -75,7 +75,7 @@ bool CEGAGraphics::loadData()
|
||||
char *data;
|
||||
data = new char[databuf.size()];
|
||||
|
||||
memcpy(data, databuf.data(), databuf.size());
|
||||
memcpy(data, &databuf[0], databuf.size());
|
||||
|
||||
// Now copy the data to the EGAHEAD Structure
|
||||
memcpy(&LatchPlaneSize,data,4);
|
||||
|
||||
Reference in New Issue
Block a user