From d57b58849bda868f2463d38cc636f01af919316c Mon Sep 17 00:00:00 2001 From: Shauren Date: Tue, 5 Sep 2023 00:10:35 +0200 Subject: Dep/CascLib: Update to ladislav-zezula/CascLib@5c60050770767f2e606f6fec0c35beb8b9b00c60 --- dep/CascLib/src/common/RootHandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dep/CascLib/src/common/RootHandler.cpp') diff --git a/dep/CascLib/src/common/RootHandler.cpp b/dep/CascLib/src/common/RootHandler.cpp index 227eaff6b96..3237c7987c0 100644 --- a/dep/CascLib/src/common/RootHandler.cpp +++ b/dep/CascLib/src/common/RootHandler.cpp @@ -80,7 +80,7 @@ PCASC_CKEY_ENTRY TFileTreeRoot::Search(TCascSearch * pSearch, PCASC_FIND_DATA pF //BREAKIF(pSearch->nFileIndex >= 2823765); // Retrieve the file item - pFileNode = FileTree.PathAt(pFindData->szFileName, MAX_PATH, pSearch->nFileIndex++); + pFileNode = FileTree.PathAt(pFindData->szFileName, _countof(pFindData->szFileName), pSearch->nFileIndex++); if(pFileNode != NULL) { // Ignore folders, but report mount points. These can and should be able to open and read -- cgit v1.2.3