strmbase: Fix fixed size buffer copy in JoinFilterGraph() (Coverity).

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2020-01-03 16:19:52 +03:00 committed by Alexandre Julliard
parent e04c168c30
commit 4c58a2311a
1 changed files with 1 additions and 1 deletions

View File

@ -290,7 +290,7 @@ static HRESULT WINAPI filter_JoinFilterGraph(IBaseFilter *iface, IFilterGraph *p
EnterCriticalSection(&This->csFilter);
{
if (pName)
lstrcpyW(This->filterInfo.achName, pName);
lstrcpynW(This->filterInfo.achName, pName, MAX_FILTER_NAME);
else
*This->filterInfo.achName = '\0';
This->filterInfo.pGraph = pGraph; /* NOTE: do NOT increase ref. count */