Skip to content

Commit

Permalink
Merge pull request surge-synthesizer#293 from baconpaul/fix-windows-j…
Browse files Browse the repository at this point in the history
…an12

Fix broken windows build

Former-commit-id: cc346431c0bfc6066416b38a78a7d99c403ad8d0 [formerly d0e45bd]
Former-commit-id: f4efccbefd9f753a75c83c59b3c4109615beca0e
Former-commit-id: 11315330a50bf2abf1a169ea3d006c9e13d6ae98
  • Loading branch information
baconpaul authored Jan 12, 2019
2 parents b2df9cd + a1a5ce6 commit 5f68c04
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 5f68c04

Please sign in to comment.