Skip to content

Commit 0dcf196

Browse files
authored
(Qt) Fix setting value size (#17332)
1 parent 7161069 commit 0dcf196

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ui/drivers/qt/qt_widgets.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ StringComboBox::StringComboBox(rarch_setting_t *setting, QWidget *parent) :
454454

455455
void StringComboBox::onCurrentTextChanged(const QString &text)
456456
{
457-
strlcpy(m_value, text.toUtf8().data(), sizeof(m_value));
457+
strlcpy(m_value, text.toUtf8().data(), m_setting->size);
458458

459459
setting_generic_handle_change(m_setting);
460460
}

0 commit comments

Comments
 (0)