Commit 4c58a231 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

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

parent e04c168c
......@@ -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 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment