Merge pull request from mxdamien/master

Increase buffersize due to possible overflow
This commit is contained in:
Tim Felgentreff 2020-02-13 22:54:38 +01:00 committed by GitHub
commit 749818369a
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);