/** @file\r
Misc BDS library function\r
\r
-Copyright (c) 2004 - 2014, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2004 - 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 (IsResetReminderFeatureEnable ()) {\r
if (IsResetRequired ()) {\r
\r
- StringBuffer1 = AllocateZeroPool (MAX_STRING_LEN * sizeof (CHAR16));\r
+ StringBuffer1 = AllocateCopyPool (\r
+ MAX_STRING_LEN * sizeof (CHAR16),\r
+ L"Configuration changed. Reset to apply it Now."\r
+ );\r
ASSERT (StringBuffer1 != NULL);\r
- StringBuffer2 = AllocateZeroPool (MAX_STRING_LEN * sizeof (CHAR16));\r
+ StringBuffer2 = AllocateCopyPool (\r
+ MAX_STRING_LEN * sizeof (CHAR16),\r
+ L"Press ENTER to reset"\r
+ );\r
ASSERT (StringBuffer2 != NULL);\r
- StrCpy (StringBuffer1, L"Configuration changed. Reset to apply it Now.");\r
- StrCpy (StringBuffer2, L"Press ENTER to reset");\r
//\r
// Popup a menu to notice user\r
//\r
performance, all the function will only include if the performance\r
switch is set.\r
\r
-Copyright (c) 2004 - 2013, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2004 - 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
UINTN EndIndex;\r
\r
if (PdbFileName == NULL) {\r
- AsciiStrCpy (GaugeString, " ");\r
+ AsciiStrCpyS (GaugeString, PERF_TOKEN_LENGTH, " ");\r
} else {\r
StartIndex = 0;\r
for (EndIndex = 0; PdbFileName[EndIndex] != 0; EndIndex++)\r
CHAR8 *PdbFileName;\r
EFI_DRIVER_BINDING_PROTOCOL *DriverBinding;\r
\r
- AsciiStrCpy (GaugeString, " ");\r
+ AsciiStrCpyS (GaugeString, PERF_TOKEN_LENGTH, " ");\r
\r
//\r
// Get handle name from image protocol\r
\r
GetNameFromHandle (Handles[Index], GaugeString);\r
\r
- AsciiStrCpy (mPerfData.Token, GaugeString);\r
+ AsciiStrCpyS (mPerfData.Token, PERF_TOKEN_SIZE, GaugeString);\r
mPerfData.Duration = Duration;\r
\r
CopyMem (Ptr, &mPerfData, sizeof (PERF_DATA));\r
\r
ZeroMem (&mPerfData, sizeof (PERF_DATA));\r
\r
- AsciiStrnCpy (mPerfData.Token, Token, PERF_TOKEN_LENGTH);\r
+ AsciiStrnCpyS (mPerfData.Token, PERF_TOKEN_SIZE, Token, PERF_TOKEN_LENGTH);\r
if (StartTicker == 1) {\r
StartTicker = StartValue;\r
}\r