From a61ae330bdca9e10c6e246e02d4622ae33276a1b Mon Sep 17 00:00:00 2001 From: rubidium Date: Sat, 30 Apr 2011 17:44:12 +0000 Subject: [PATCH] (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(-) diff --git a/src/screenshot.cpp b/src/screenshot.cpp index d5a188a8dd..46f54360d2 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));