]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/QueryTable.c
Comment's added and fixed.
[mirror_edk2.git] / ShellPkg / Library / UefiShellDebug1CommandsLib / SmbiosView / QueryTable.c
index 7b7e5928bd204923a96cbf3740e773bcffcc67a7..f3e3f5f37b316c5c1ec5fb1d7dce30f1a8e54c51 100644 (file)
@@ -2969,7 +2969,7 @@ QueryTable (
     //\r
     if (High > Low && Key >= Low && Key <= High) {\r
       StrnCpy (Info, Table[Index].Info, InfoLen-1);\r
-      StrCat (Info, L"\n");\r
+      StrnCat (Info, L"\n", InfoLen - StrLen(Info));\r
       return Key;\r
     }\r
     //\r
@@ -2977,7 +2977,7 @@ QueryTable (
     //\r
     if (Table[Index].Key == Key) {\r
       StrnCpy (Info, Table[Index].Info, InfoLen-1);\r
-      StrCat (Info, L"\n");\r
+      StrnCat (Info, L"\n", InfoLen - StrLen(Info));\r
       return Key;\r
     }\r
   }\r