Skip to content

Commit

Permalink
Merge pull request #1 from Wargus/master
Browse files Browse the repository at this point in the history
Increase buffersize due to possible overflow
  • Loading branch information
ipochto committed Feb 14, 2020
2 parents 69aa6c8 + 7498183 commit 52ebdd2
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 52ebdd2

Please sign in to comment.