Module: wine Branch: master Commit: af34af7bac879ee4b832bf4e24d395ec8b980c92 URL: https://source.winehq.org/git/wine.git/?a=commit;h=af34af7bac879ee4b832bf4e2...
Author: Alexandre Julliard julliard@winehq.org Date: Tue May 4 21:10:02 2021 +0200
amstream: Avoid wcsncpy().
Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/amstream/filter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/amstream/filter.c b/dlls/amstream/filter.c index 081e6b29ed5..91a9ef4bb8a 100644 --- a/dlls/amstream/filter.c +++ b/dlls/amstream/filter.c @@ -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;