Skip to content

Commit

Permalink
(Qt) Fix setting value size (#17332)
Browse files Browse the repository at this point in the history
  • Loading branch information
viachaslavic authored Jan 2, 2025
1 parent 7161069 commit 0dcf196
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/drivers/qt/qt_widgets.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 0dcf196

Please sign in to comment.