qt: Fix shader path copying to config.
memcpy corrupted the path, use strcpy instead.
This commit is contained in:
@@ -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';
|
||||
}
|
||||
|
Reference in New Issue
Block a user