mirror of
https://github.com/gnif/LookingGlass.git
synced 2026-11-12 14:57:20 +00:00
[client] egl: avoid deprecated preset string copy
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user