mirror of
https://github.com/ladislav-zezula/StormLib.git
synced 2026-02-04 13:26:35 +01:00
* Removed sprintf as source of incompatibilities
* Fixed bug
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user