diff options
author | Ladislav Zezula <zezula@volny.cz> | 2020-08-26 10:17:05 +0200 |
---|---|---|
committer | Ladislav Zezula <zezula@volny.cz> | 2020-08-26 10:17:05 +0200 |
commit | f438d59c5c10c9d2308ac1bfaff8da54bdbb8c4f (patch) | |
tree | a8e531af5191cbd428a538805392b62002de8124 /src/SFileFindFile.cpp | |
parent | c20d117942a324b97ee5e326f6630ecf0f6d5a23 (diff) |
* Removed sprintf as source of incompatibilities
* Fixed bug
Diffstat (limited to 'src/SFileFindFile.cpp')
-rw-r--r-- | src/SFileFindFile.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SFileFindFile.cpp b/src/SFileFindFile.cpp index 30be19a..7e8502b 100644 --- a/src/SFileFindFile.cpp +++ b/src/SFileFindFile.cpp @@ -244,7 +244,7 @@ static bool DoMPQSearch_FileEntry( if(szFileName == NULL)
{
// Open the file by its pseudo-name.
- sprintf(szNameBuff, "File%08u.xxx", (unsigned int)dwBlockIndex);
+ StringCreatePseudoFileName(szNameBuff, _countof(szNameBuff), dwBlockIndex, "xxx");
if(SFileOpenFileEx((HANDLE)hs->ha, szNameBuff, SFILE_OPEN_BASE_FILE, &hFile))
{
SFileGetFileName(hFile, szNameBuff);
|