Skip to content

Commit

Permalink
Use IO_MAX_PATH_LENGTH in CFileCollection
Browse files Browse the repository at this point in the history
  • Loading branch information
Robyt3 committed Jun 25, 2023
1 parent f54c6cd commit 9ecb010
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/engine/shared/filecollection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ void CFileCollection::AddEntry(int64_t Timestamp)
}
else
{
char aBuf[512];
char aBuf[IO_MAX_PATH_LENGTH];
char aTimestring[TIMESTAMP_LENGTH];
BuildTimestring(m_aTimestamps[0], aTimestring);

Expand Down Expand Up @@ -261,7 +261,7 @@ int CFileCollection::RemoveCallback(const char *pFilename, int IsDir, int Storag

if(Timestamp == pThis->m_Remove)
{
char aBuf[512];
char aBuf[IO_MAX_PATH_LENGTH];
str_format(aBuf, sizeof(aBuf), "%s/%s", pThis->m_aPath, pFilename);
pThis->m_pStorage->RemoveFile(aBuf, IStorage::TYPE_SAVE);
pThis->m_Remove = -1;
Expand Down

0 comments on commit 9ecb010

Please sign in to comment.