Skip to content

Commit

Permalink
Fix broken windows build; sorry
Browse files Browse the repository at this point in the history
  • Loading branch information
baconpaul committed Jan 12, 2019
1 parent 26adc86 commit 2a859c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/common/gui/CScalableBitmap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ CScalableBitmap::CScalableBitmap(CResourceDescription desc) : CBitmap(desc)
{
auto postfix = scaleFilePostfixes[sc];

char filename [PATH_MAX];
sprintf (filename, "scalable/bmp%05d%s.png", id, postfix.c_str());
char filename [1024];
snprintf (filename, 1024, "scalable/bmp%05d%s.png", id, postfix.c_str());

CBitmap *tmp = new CBitmap(CResourceDescription( filename ));

Expand Down

0 comments on commit 2a859c2

Please sign in to comment.