//\r
// Copy the string into the Key, leaving the last character allocated as NULL to terminate\r
//\r
- StrnCpy(Node->Key, CurrentString, StrStr(CurrentString, L"=") - CurrentString);\r
+ StrCpyS( Node->Key, \r
+ StrStr(CurrentString, L"=") - CurrentString + 1, \r
+ CurrentString\r
+ );\r
\r
//\r
// ValueSize = TotalSize - already removed size - size for '=' + size for terminator (the last 2 items cancel each other)\r