From 0dcf196ee38b2f1295773a6b2fef45fa5cb95b93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Via=C4=8Das=C5=82a=C5=AD?= Date: Thu, 2 Jan 2025 14:58:30 +0300 Subject: [PATCH] (Qt) Fix setting value size (#17332) --- ui/drivers/qt/qt_widgets.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/drivers/qt/qt_widgets.cpp b/ui/drivers/qt/qt_widgets.cpp index 9bf728f81e3..9c7881fe776 100644 --- a/ui/drivers/qt/qt_widgets.cpp +++ b/ui/drivers/qt/qt_widgets.cpp @@ -454,7 +454,7 @@ StringComboBox::StringComboBox(rarch_setting_t *setting, QWidget *parent) : void StringComboBox::onCurrentTextChanged(const QString &text) { - strlcpy(m_value, text.toUtf8().data(), sizeof(m_value)); + strlcpy(m_value, text.toUtf8().data(), m_setting->size); setting_generic_handle_change(m_setting); }