From 0e1ac234d8ce9a1c9bc96ac22b55fe1d4b3570ac Mon Sep 17 00:00:00 2001 From: rubidium Date: Sat, 30 Apr 2011 17:44:12 +0000 Subject: (svn r22388) -Fix: when a game uses a lot of NewGRFs the buffer for storing that information in the PNG is too small --- src/screenshot.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/screenshot.cpp b/src/screenshot.cpp index d5a188a8d..46f54360d 100644 --- a/src/screenshot.cpp +++ b/src/screenshot.cpp @@ -277,7 +277,7 @@ static bool MakePNGImage(const char *name, ScreenshotCallback *callb, void *user text[0].text_length = strlen(_openttd_revision); text[0].compression = PNG_TEXT_COMPRESSION_NONE; - char buf[2048]; + char buf[8192]; char *p = buf; p += seprintf(p, lastof(buf), "Graphics set: %s (%u)\n", BaseGraphics::GetUsedSet()->name, BaseGraphics::GetUsedSet()->version); p = strecpy(p, "NewGRFs:\n", lastof(buf)); -- cgit v1.2.3-54-g00ecf