//\r
// Append L"&NAME="\r
//\r
- StrCpyS (String, MaxLen, L"&NAME=");\r
+ StrCatS (ReturnString, MaxLen, L"&NAME=");\r
String += StrLen (String);\r
\r
if (Name != NULL) {\r
//\r
// Append L"&PATH="\r
//\r
- StrCpyS (String, MaxLen, L"&PATH=");\r
+ StrCatS (ReturnString, MaxLen, L"&PATH=");\r
String += StrLen (String);\r
\r
//\r
StringPtr = *ConfigRequest;\r
\r
StrCpyS (StringPtr, MaxLen, ConfigHdr);\r
- StringPtr += StrLen (StringPtr);\r
\r
- *StringPtr = L'&';\r
- StringPtr++;\r
+ StrCatS (StringPtr, MaxLen, L"&");\r
\r
- StrCpyS (StringPtr, MaxLen, RequestElement);\r
- StringPtr += StrLen (StringPtr);\r
- *StringPtr = L'\0';\r
+ StrCatS (StringPtr, MaxLen, RequestElement);\r
\r
FreePool (ConfigHdr);\r
FreePool (RequestElement);\r
StringPtr = *ConfigResp;\r
\r
StrCpyS (StringPtr, MaxLen, ConfigHdr);\r
- StringPtr += StrLen (StringPtr);\r
\r
- *StringPtr = L'&';\r
- StringPtr++;\r
+ StrCatS (StringPtr, MaxLen, L"&");\r
\r
- StrCpyS (StringPtr, MaxLen, RequestElement);\r
- StringPtr += StrLen (StringPtr);\r
- \r
- *StringPtr = L'&';\r
- StringPtr++;\r
\r
- StrCpyS (StringPtr, MaxLen, L"VALUE=");\r
- StringPtr += StrLen (StringPtr);\r
+ StrCatS (StringPtr, MaxLen, RequestElement);\r
+\r
+ StrCatS (StringPtr, MaxLen, L"&");\r
+\r
+ StrCatS (StringPtr, MaxLen, L"VALUE=");\r
\r
- StrCpyS (StringPtr, MaxLen, ValueElement);\r
- StringPtr += StrLen (StringPtr);\r
- *StringPtr = L'\0';\r
+ StrCatS (StringPtr, MaxLen, ValueElement);\r
\r
FreePool (ConfigHdr);\r
FreePool (RequestElement);\r
// 2.1 Copy NameSpaceId section.\r
//\r
StrCpyS (RespStr, RespStrLen, L"NAMESPACE=");\r
- RespStr += StrLen (RespStr);\r
- StrCpyS (RespStr, RespStrLen, UnicodeNameSpace);\r
- RespStr += StrLen (RespStr);\r
+\r
+ StrCatS (RespStr, RespStrLen, UnicodeNameSpace);\r
\r
//\r
// 2.2 Copy PathHdr section.\r
//\r
- StrCpyS (RespStr, RespStrLen, PathHdr);\r
- RespStr += StrLen (RespStr);\r
+ StrCatS (RespStr, RespStrLen, PathHdr);\r
\r
//\r
// 2.3 Copy Keyword section.\r
//\r
- StrCpyS (RespStr, RespStrLen, L"KEYWORD=");\r
- RespStr += StrLen (RespStr);\r
- StrCpyS (RespStr, RespStrLen, KeywordData);\r
- RespStr += StrLen (RespStr);\r
+ StrCatS (RespStr, RespStrLen, L"KEYWORD=");\r
+\r
+ StrCatS (RespStr, RespStrLen, KeywordData);\r
\r
//\r
// 2.4 Copy the Value section.\r
//\r
- StrCpyS (RespStr, RespStrLen, ValueStr);\r
- RespStr += StrLen (RespStr);\r
+ StrCatS (RespStr, RespStrLen, ValueStr);\r
\r
//\r
// 2.5 Copy ReadOnly section if exist.\r
//\r
if (ReadOnly) {\r
- StrCpyS (RespStr, RespStrLen, L"&READONLY");\r
- RespStr += StrLen (RespStr);\r
+ StrCatS (RespStr, RespStrLen, L"&READONLY");\r
}\r
\r
- //\r
- // 2.6 Add the end.\r
- //\r
- *RespStr = L'\0';\r
-\r
if (UnicodeNameSpace != NULL) {\r
FreePool (UnicodeNameSpace);\r
}\r
FreePool (*MultiKeywordResp);\r
*MultiKeywordResp = StringPtr;\r
\r
- StringPtr += StrLen (StringPtr);\r
-\r
- *StringPtr = L'&';\r
- StringPtr++;\r
+ StrCatS (StringPtr, MultiKeywordRespLen / sizeof (CHAR16), L"&");\r
\r
- StrCpyS (StringPtr, MultiKeywordRespLen / sizeof (CHAR16), *KeywordResp);\r
+ StrCatS (StringPtr, MultiKeywordRespLen / sizeof (CHAR16), *KeywordResp);\r
\r
return EFI_SUCCESS;\r
}\r