amstream: Avoid wcsncpy().

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2021-05-04 21:10:02 +02:00
parent e85dee1fb7
commit af34af7bac

View file

@ -517,7 +517,7 @@ static HRESULT WINAPI filter_JoinFilterGraph(IMediaStreamFilter *iface,
EnterCriticalSection(&filter->cs);
if (name)
wcsncpy(filter->name, name, ARRAY_SIZE(filter->name));
lstrcpynW(filter->name, name, ARRAY_SIZE(filter->name));
else
filter->name[0] = 0;
filter->graph = graph;