[client] egl: avoid deprecated preset string copy

This commit is contained in:
Geoffrey McRae
2026-10-03 09:47:36 +10:00
parent f9fa437c20
commit 08b68ff740

View File

@@ -214,8 +214,9 @@ static bool savePreset(struct EGL_PostProcess * this, const char * name)
char * p = order;
vector_forEach(filter, &this->filters)
{
strcpy(p, filter->ops.id);
p += strlen(filter->ops.id);
const size_t idLen = strlen(filter->ops.id);
memcpy(p, filter->ops.id, idLen);
p += idLen;
*p++ = ';';
}
if (p > order)