diff --git a/UI/GameSettingsScreen.cpp b/UI/GameSettingsScreen.cpp index d39e309719..a0ddcf7efc 100644 --- a/UI/GameSettingsScreen.cpp +++ b/UI/GameSettingsScreen.cpp @@ -170,7 +170,7 @@ EventReturn PopupSliderChoiceFloat::HandleClick(EventParams &e) { void PopupSliderChoiceFloat::Draw(UIContext &dc) { Choice::Draw(dc); - char temp[5]; + char temp[32]; sprintf(temp, "%2.2f", *value_); dc.Draw()->DrawText(dc.theme->uiFont, temp, bounds_.x2() - 12, bounds_.centerY(), 0xFFFFFFFF, ALIGN_RIGHT | ALIGN_VCENTER); }