qt: Fix shader path copying to config.

memcpy corrupted the path, use strcpy instead.
This commit is contained in:
ts-korhonen
2022-02-27 20:56:47 +02:00
parent 08014dc5b5
commit 4ec8e80042

View File

@@ -82,7 +82,7 @@ OpenGLOptions::save() const
auto path = m_shaders.first().path().toLocal8Bit();
if (!path.isEmpty())
memcpy(video_shader, path.constData(), path.size());
strcpy(video_shader, path.constData());
else
video_shader[0] = '\0';
}