Skip to content

Commit

Permalink
Merge pull request #267 from mxdamien/master
Browse files Browse the repository at this point in the history
Increase buffersize due to possible overflow
  • Loading branch information
timfel committed Feb 13, 2020
2 parents 607fe40 + f51a9b9 commit 7498183
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ui/mainscr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7498183

Please sign in to comment.