Merge pull request from Wargus/master

Increase buffersize due to possible overflow
This commit is contained in:
ipochto 2020-02-14 11:11:37 +03:00 committed by GitHub
commit 52ebdd22d3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1149,7 +1149,7 @@ static void InfoPanel_draw_multiple_selection()
}
}
if (Selected.size() > UI.SelectedButtons.size()) {
char buf[5];
char buf[22];
sprintf(buf, "+%lu", (long unsigned int)(Selected.size() - UI.SelectedButtons.size()));
CLabel(*UI.MaxSelectedFont).Draw(UI.MaxSelectedTextX, UI.MaxSelectedTextY, buf);