/** @file\r
Main file for attrib shell level 2 function.\r
\r
- Copyright (c) 2015, Hewlett-Packard Development Company, L.P.<BR>\r
- Copyright (c) 2009 - 2014, Intel Corporation. All rights reserved.<BR>\r
+ (C) Copyright 2015 Hewlett-Packard Development Company, L.P.<BR>\r
+ Copyright (c) 2009 - 2015, Intel Corporation. All rights reserved.<BR>\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
if (TempName == NULL) {\r
ShellStatus = SHELL_OUT_OF_RESOURCES;\r
} else {\r
- StrnCpy(TempName, Node->FullName, NewSize/sizeof(CHAR16) -1);\r
+ StrCpyS(TempName, NewSize/sizeof(CHAR16), Node->FullName);\r
TempName[StrStr(TempName, L":")+1-TempName] = CHAR_NULL;\r
- StrnCat(TempName, Node2->FullName, NewSize/sizeof(CHAR16) -1 - StrLen(TempName));\r
+ StrCatS(TempName, NewSize/sizeof(CHAR16), Node2->FullName);\r
FreePool((VOID*)Node2->FullName);\r
Node2->FullName = TempName;\r
\r
}\r
\r
/**\r
- Determins if a Node is a valid delete target. Will prevent deleting the root directory.\r
+ Determines if a Node is a valid delete target. Will prevent deleting the root directory.\r
\r
@param[in] List RESERVED. Not used.\r
@param[in] Node The node to analyze.\r