From ae724571beb0cff6edefe42942b7cdc7aa81ee94 Mon Sep 17 00:00:00 2001 From: jcarsey Date: Fri, 1 Apr 2011 22:16:01 +0000 Subject: Comment's added and fixed. Pointer's checked for NULL before access and after memory allocations. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11499 6f19259b-4bc3-4df7-8a09-765794883524 --- ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/QueryTable.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView') diff --git a/ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/QueryTable.c b/ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/QueryTable.c index 7b7e5928bd..f3e3f5f37b 100644 --- a/ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/QueryTable.c +++ b/ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/QueryTable.c @@ -2969,7 +2969,7 @@ QueryTable ( // if (High > Low && Key >= Low && Key <= High) { StrnCpy (Info, Table[Index].Info, InfoLen-1); - StrCat (Info, L"\n"); + StrnCat (Info, L"\n", InfoLen - StrLen(Info)); return Key; } // @@ -2977,7 +2977,7 @@ QueryTable ( // if (Table[Index].Key == Key) { StrnCpy (Info, Table[Index].Info, InfoLen-1); - StrCat (Info, L"\n"); + StrnCat (Info, L"\n", InfoLen - StrLen(Info)); return Key; } } -- cgit v1.2.3