aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2024-05-27 01:34:48 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2024-07-15 01:59:37 +0200
commitdaf61dddc8e27424c320d5c3abe3e0c5182cd5c0 (patch)
tree75425d7e07b661f3815bbe2f5422938331a7ca9c
parent8f74c313f19057575f376c2be4aad1c2c53d7df8 (diff)
downloadffmpeg-daf61dddc8e27424c320d5c3abe3e0c5182cd5c0.tar.gz
avdevice/dshow_filter: Use wcscpy_s()
Fixes: CID1591929 Copy into fixed size buffer Sponsored-by: Sovereign Tech Fund Reviewed-by: Roger Pack <rogerdpack@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--libavdevice/dshow_filter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavdevice/dshow_filter.c b/libavdevice/dshow_filter.c
index 4642ac077c..2122c84626 100644
--- a/libavdevice/dshow_filter.c
+++ b/libavdevice/dshow_filter.c
@@ -135,7 +135,7 @@ long WINAPI ff_dshow_filter_JoinFilterGraph(DShowFilter *this, IFilterGraph *gra
this->info.pGraph = graph;
if (name)
- wcscpy(this->info.achName, name);
+ wcscpy_s(this->info.achName, sizeof(this->info.achName) / sizeof(wchar_t), name);
return S_OK;
}