From ae7ec4802a81770ff164e465b8d1fb51624ca093 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Sun, 7 Feb 2016 02:07:38 +0100 Subject: Windows:Fix various issues and warnings reported by static code analysis tool Coverity. --- src/Common/Cmdline.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Common/Cmdline.c') diff --git a/src/Common/Cmdline.c b/src/Common/Cmdline.c index b140309f..759c63f5 100644 --- a/src/Common/Cmdline.c +++ b/src/Common/Cmdline.c @@ -173,7 +173,7 @@ int GetArgumentValue (wchar_t **lpszCommandLineArgs, int *nArgIdx, { /* Handles the case of space between parameter code and value */ - StringCbCopyW (lpszValue, nValueSize, lpszCommandLineArgs[*nArgIdx + 1]); + StringCchCopyW (lpszValue, nValueSize, lpszCommandLineArgs[*nArgIdx + 1]); lpszValue[nValueSize - 1] = 0; (*nArgIdx)++; return HAS_ARGUMENT; -- cgit v1.2.3