mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-14 02:27:40 -04:00
Correct calls to StrTo(Unicode|Ansi)
to use the correct size.
This commit is contained in:
@ -4911,7 +4911,7 @@ UInt8 VaultAgeFindOrCreateChildAgeLink(
|
||||
|
||||
// First, try to find an already existing ChildAge
|
||||
char name[MAX_PATH];
|
||||
StrToAnsi(name, parentAgeName, arrsize(parentAgeName));
|
||||
StrToAnsi(name, parentAgeName, arrsize(name));
|
||||
plAgeInfoStruct search;
|
||||
search.SetAgeFilename(name);
|
||||
|
||||
@ -4933,7 +4933,7 @@ UInt8 VaultAgeFindOrCreateChildAgeLink(
|
||||
if (RelVaultNode* rvnChildAges = rvnParentInfo->GetChildAgeInfoListNodeIncRef(plVault::kChildAgesFolder, 1)) {
|
||||
const char* ageName = info->GetAgeFilename();
|
||||
wchar hack[MAX_PATH];
|
||||
StrToUnicode(hack, ageName, arrsize(ageName));
|
||||
StrToUnicode(hack, ageName, arrsize(hack));
|
||||
|
||||
// Search for our age
|
||||
NetVaultNode* temp = NEWZERO(NetVaultNode);
|
||||
|
Reference in New Issue
Block a user