mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-04-07 00:05:24 +00:00
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).
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user