From 2a859c22c1686381c2dd8c0fc85a40fc529e3238 Mon Sep 17 00:00:00 2001 From: Paul Walker Date: Sat, 12 Jan 2019 15:06:47 -0800 Subject: [PATCH] Fix broken windows build; sorry --- src/common/gui/CScalableBitmap.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/gui/CScalableBitmap.cpp b/src/common/gui/CScalableBitmap.cpp index 37f013ea96c..58bd03edae4 100644 --- a/src/common/gui/CScalableBitmap.cpp +++ b/src/common/gui/CScalableBitmap.cpp @@ -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 ));