From e243777d665243faeb5cd6de2d7cecb6ce20e1e4 Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Tue, 26 Nov 2024 08:25:14 +0100 Subject: [PATCH] vdisp/decklink fix double copy; also CID 470421 Copied tvice from 3125ea2d (2024-11-18) - actually the original strcpy() was forgotten (replaced in favor of snprintf_ch). --- src/video_display/decklink.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/video_display/decklink.cpp b/src/video_display/decklink.cpp index c01d3d8c0..b6f406d21 100644 --- a/src/video_display/decklink.cpp +++ b/src/video_display/decklink.cpp @@ -1208,7 +1208,6 @@ static bool settings_init(struct state_decklink *s, const char *fmt, bool ret = true; char tmp[STR_LEN]; snprintf_ch(tmp, "%s", fmt); - strcpy(tmp, fmt); replace_all(tmp, ESCAPED_COLON, DELDEL); // replace all '\:' with 2xDEL char *save_ptr = nullptr; char *ptr = strtok_r(tmp, ":", &save_ptr);