From a1a5ce6c944048e981512a4c4ccd2c82b6ae39bb 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 Former-commit-id: b24ef2268af76ef8264481e80ea65691cc624fb7 [formerly 2a859c22c1686381c2dd8c0fc85a40fc529e3238] Former-commit-id: 378dda95ea1f5611ec7a10a66c9eb348b05f3a12 Former-commit-id: fa4391e6666e0441f1a974ea5c65955538fda9eb --- 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 ));