Fix crash with CPU Speed Lock popup.

This commit is contained in:
The Dax 2013-08-21 11:28:25 -04:00
parent a526b7ca7c
commit 1c1b41b7a2

View File

@ -157,7 +157,7 @@ EventReturn PopupSliderChoice::HandleClick(EventParams &e) {
void PopupSliderChoice::Draw(UIContext &dc) {
Choice::Draw(dc);
char temp[4];
char temp[32];
sprintf(temp, "%i", *value_);
dc.Draw()->DrawText(dc.theme->uiFont, temp, bounds_.x2() - 12, bounds_.centerY(), 0xFFFFFFFF, ALIGN_RIGHT | ALIGN_VCENTER);
}