\r
Copyright (c) 2007, Intel Corporation. All rights reserved.<BR>\r
Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>\r
+ (C) Copyright 2015 Hewlett Packard Enterprise Development LP<BR>\r
\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
}\r
\r
// Copy the new command line into the ring buffer\r
- AsciiStrnCpy(&mCmdHistory[mCmdHistoryStart][0], Cmd, MAX_CMD_LINE);\r
+ AsciiStrnCpyS (&mCmdHistory[mCmdHistoryStart][0], MAX_CMD_LINE, Cmd, MAX_CMD_LINE);\r
}\r
\r
// Reset the command history for the next up arrow press\r
\r
**/\r
EFI_STATUS\r
+EFIAPI\r
EblGetCharKey (\r
IN OUT EFI_INPUT_KEY *Key,\r
IN UINTN TimeoutInSec,\r
\r
**/\r
BOOLEAN\r
+EFIAPI\r
EblAnyKeyToContinueQtoQuit (\r
IN UINTN *CurrentRow,\r
IN BOOLEAN PrefixNewline\r
}\r
AsciiPrint (History);\r
Index = AsciiStrLen (History);\r
- AsciiStrnCpy (Cmd, History, CmdMaxSize);\r
+ AsciiStrnCpyS (Cmd, CmdMaxSize, History, CmdMaxSize);\r
} else {\r
Cmd[Index++] = Char;\r
if (FixedPcdGetBool(PcdEmbeddedShellCharacterEcho) == TRUE) {\r
\r
Status = gRT->GetVariable(CommandLineVariableName, &VendorGuid, NULL, &CommandLineVariableSize, CommandLineVariable);\r
if (!EFI_ERROR(Status)) {\r
- UnicodeStrToAsciiStr(CommandLineVariable, CmdLine);\r
+ UnicodeStrToAsciiStrS (CommandLineVariable, CmdLine, MAX_CMD_LINE);\r
}\r
\r
FreePool(CommandLineVariable);\r
}\r
\r
if (EFI_ERROR(Status)) {\r
- AsciiStrCpy (CmdLine, (CHAR8 *)PcdGetPtr (PcdEmbeddedAutomaticBootCommand));\r
+ AsciiStrCpyS (CmdLine, MAX_CMD_LINE, (CHAR8 *)PcdGetPtr (PcdEmbeddedAutomaticBootCommand));\r
}\r
\r
for (;;) {\r