From 4ec8e80042b1cd2cae7953f27f281d82c47dd4f6 Mon Sep 17 00:00:00 2001 From: ts-korhonen Date: Sun, 27 Feb 2022 20:56:47 +0200 Subject: [PATCH] qt: Fix shader path copying to config. memcpy corrupted the path, use strcpy instead. --- src/qt/qt_opengloptions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qt/qt_opengloptions.cpp b/src/qt/qt_opengloptions.cpp index 720d61ef7..72f649b53 100644 --- a/src/qt/qt_opengloptions.cpp +++ b/src/qt/qt_opengloptions.cpp @@ -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'; }