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:
Martin Pulec
2024-11-26 08:25:14 +01:00
parent 8d91757f7d
commit e243777d66

View File

@@ -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);