From 7f79b01e8ef43901785dbccc1f4676cdf9a53d31 Mon Sep 17 00:00:00 2001 From: Jaben Carsey Date: Tue, 2 Sep 2014 20:17:38 +0000 Subject: ShellPkg: Refactor string manipulation This patch replaces StrCpy with StrnCpy or refactors out the usage of StrCpy through some other means. This patch replaces StrCat with StrnCat or refactors out the usage of StrCat through some other means. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16038 6f19259b-4bc3-4df7-8a09-765794883524 --- ShellPkg/Application/Shell/ShellParametersProtocol.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'ShellPkg/Application/Shell/ShellParametersProtocol.h') diff --git a/ShellPkg/Application/Shell/ShellParametersProtocol.h b/ShellPkg/Application/Shell/ShellParametersProtocol.h index e2d28816d2..15b76b7691 100644 --- a/ShellPkg/Application/Shell/ShellParametersProtocol.h +++ b/ShellPkg/Application/Shell/ShellParametersProtocol.h @@ -190,13 +190,15 @@ ParseCommandLineToArgs( @param[in, out] Walker pointer to string of command line. Adjusted to reminaing command line on return @param[in, out] TempParameter pointer to string of command line item extracted. + @param[in] Length Length of (*TempParameter) in bytes **/ VOID EFIAPI GetNextParameter( - CHAR16 **Walker, - CHAR16 **TempParameter + IN OUT CHAR16 **Walker, + IN OUT CHAR16 **TempParameter, + IN CONST UINTN Length ); #endif //_SHELL_PARAMETERS_PROTOCOL_PROVIDER_HEADER_ -- cgit v1.2.3