1
0
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-17 10:52:46 +00:00

Fix a cast error and check UUID size.

This commit is contained in:
2013-01-04 22:30:46 -08:00
committed by Darryl Pogue
parent f455ee25ec
commit 6681b1d596
4 changed files with 9 additions and 3 deletions

View File

@ -977,7 +977,7 @@ void NetVaultNodeFieldArray::GetFieldValueString_LCS (
case NetVaultNode::kUuid_2:
case NetVaultNode::kUuid_3:
case NetVaultNode::kUuid_4: {
plString tmp = plUUID((char*)fieldAddr).AsString();
plString tmp = reinterpret_cast<plUUID*>(fieldAddr)->AsString();
StrPrintf(dst, dstChars, L"hextoraw('%s')", tmp.c_str());
}