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:
parent
e04c168c30
commit
4c58a2311a
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue