X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=ShellPkg%2FApplication%2FShell%2FShellManParser.c;h=b180c6c8f7108586f9895c6c6d982d7fb5399363;hb=ba0014b9f8ae1a593f03e744f26008214c2b06a8;hp=975f3c22da878de77fb3f74ebabf1d3dcd7b40df;hpb=0a54cd4431c31ab2e72d880a55c31dd08f971cc4;p=mirror_edk2.git diff --git a/ShellPkg/Application/Shell/ShellManParser.c b/ShellPkg/Application/Shell/ShellManParser.c index 975f3c22da..b180c6c8f7 100644 --- a/ShellPkg/Application/Shell/ShellManParser.c +++ b/ShellPkg/Application/Shell/ShellManParser.c @@ -146,14 +146,14 @@ GetManFileName( } else { Buffer = AllocateZeroPool(StrSize(ManFileName) + 4*sizeof(CHAR16)); if (Buffer != NULL) { - StrnCpyS( Buffer, - (StrSize(ManFileName) + 4*sizeof(CHAR16))/sizeof(CHAR16), - ManFileName, + StrnCpyS( Buffer, + (StrSize(ManFileName) + 4*sizeof(CHAR16))/sizeof(CHAR16), + ManFileName, StrLen(ManFileName) ); - StrnCatS( Buffer, + StrnCatS( Buffer, (StrSize(ManFileName) + 4*sizeof(CHAR16))/sizeof(CHAR16), - L".man", + L".man", 4 ); }