Skip to content

Commit

Permalink
Merge pull request #293 from baconpaul/fix-windows-jan12
Browse files Browse the repository at this point in the history
Fix broken windows build
  • Loading branch information
baconpaul authored Jan 12, 2019
2 parents a3c1573 + 2a859c2 commit d0e45bd
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 d0e45bd

Please sign in to comment.