summaryrefslogtreecommitdiffstats
path: root/ShellPkg/Library/UefiShellDebug1CommandsLib/Edit/Edit.c
diff options
context:
space:
mode:
authorOliver Smith-Denny <osde@microsoft.com>2024-10-03 10:31:31 -0700
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2024-10-29 02:09:18 +0000
commit334f5748869996eee994f9dee41f3e6a3d9bd087 (patch)
treedc0956044dac9de2d2d6443f3c01cc922b75ec4e /ShellPkg/Library/UefiShellDebug1CommandsLib/Edit/Edit.c
parentc80c222198a88847f3e1ce3e482af8e4c0bd36fa (diff)
downloadedk2-334f5748869996eee994f9dee41f3e6a3d9bd087.tar.gz
ShellPkg: CodeQL Fixes
Includes changes across the module for the following CodeQL rules: - cpp/comparison-with-wider-type - cpp/overflow-buffer - cpp/redundant-null-check-param - cpp/uselesstest Co-authored-by: Taylor Beebe <taylor.d.beebe@gmail.com> Signed-off-by: Oliver Smith-Denny <osde@linux.microsoft.com>
Diffstat (limited to 'ShellPkg/Library/UefiShellDebug1CommandsLib/Edit/Edit.c')
-rw-r--r--ShellPkg/Library/UefiShellDebug1CommandsLib/Edit/Edit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ShellPkg/Library/UefiShellDebug1CommandsLib/Edit/Edit.c b/ShellPkg/Library/UefiShellDebug1CommandsLib/Edit/Edit.c
index 7d7721d4ee..144007a3d3 100644
--- a/ShellPkg/Library/UefiShellDebug1CommandsLib/Edit/Edit.c
+++ b/ShellPkg/Library/UefiShellDebug1CommandsLib/Edit/Edit.c
@@ -103,7 +103,7 @@ ShellCommandRunEdit (
TempParam = ShellCommandLineGetRawValue (Package, 1);
if (TempParam == NULL) {
ASSERT (TempParam != NULL);
- ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellDebug1HiiHandle, L"edit");
+ ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellDebug1HiiHandle, L"edit");
ShellStatus = SHELL_INVALID_PARAMETER;
} else {
FileBufferSetFileName (TempParam);