mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-12 19:31:41 +00:00
Merge branch 'development' of https://github.com/GarageGames/Torque3D into memberMess
# Conflicts: # Engine/source/console/consoleFunctions.cpp
This commit is contained in:
commit
cbce2ee805
154 changed files with 2950 additions and 705 deletions
|
|
@ -177,8 +177,9 @@ bool CentralDir::write(Stream *stream)
|
|||
void CentralDir::setFileComment(const char *comment)
|
||||
{
|
||||
SAFE_DELETE_ARRAY(mFileComment);
|
||||
mFileComment = new char [dStrlen(comment)+1];
|
||||
dStrcpy(mFileComment, comment);
|
||||
dsize_t commentLen = dStrlen(comment) + 1;
|
||||
mFileComment = new char [commentLen];
|
||||
dStrcpy(mFileComment, comment, commentLen);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
|
|
|||
|
|
@ -95,7 +95,7 @@ private:
|
|||
{
|
||||
// Find a unique filename
|
||||
U32 count = 1;
|
||||
dStrcpy(fileBuf, filename);
|
||||
dStrcpy(fileBuf, filename, bufSize);
|
||||
|
||||
while(zip->findFileInfo(fileBuf))
|
||||
{
|
||||
|
|
@ -109,7 +109,7 @@ private:
|
|||
}
|
||||
}
|
||||
else if(fileBuf && bufSize > 0)
|
||||
dStrcpy(fileBuf, filename);
|
||||
dStrcpy(fileBuf, filename, bufSize);
|
||||
|
||||
// Try and write to the file
|
||||
Stream * stream = zip->openFile(fileBuf ? fileBuf : filename, ZipArchive::Write);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue