Replace two more wcscat_s() overlooked in last commit.

This commit is contained in:
Yamagi 2023-04-22 17:29:22 +02:00
parent df845e0f67
commit 22617d8812

View file

@ -594,9 +594,15 @@ Sys_RemoveDir(const char *path)
{
do
{
if (wcslen(wpath) + wcslen(fd.cFileName) >= MAX_QPATH)
{
// Same as above.
continue;
}
wmemset(wpathwithfilename, 0, MAX_OSPATH);
wcscat_s(wpathwithfilename, MAX_OSPATH, wpath);
wcscat_s(wpathwithfilename, MAX_OSPATH, fd.cFileName);
wcscat(wpathwithfilename, wpath);
wcscat(wpathwithfilename, fd.cFileName);
DeleteFileW(wpathwithfilename);
}