(svn r22388) -Fix: when a game uses a lot of NewGRFs the buffer for storing that information in the PNG is too small

This commit is contained in:
rubidium 2011-04-30 17:44:12 +00:00
parent 1615b81d64
commit a61ae330bd

View File

@ -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));