summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2011-04-30 17:44:12 +0000
committerrubidium <rubidium@openttd.org>2011-04-30 17:44:12 +0000
commit0e1ac234d8ce9a1c9bc96ac22b55fe1d4b3570ac (patch)
tree7d044c25b4cfd944ec783eba56c78575f217d4b7 /src
parentc2ac411e695d1040c669524fcec6ee81e8979110 (diff)
downloadopenttd-0e1ac234d8ce9a1c9bc96ac22b55fe1d4b3570ac.tar.xz
(svn r22388) -Fix: when a game uses a lot of NewGRFs the buffer for storing that information in the PNG is too small
Diffstat (limited to 'src')
-rw-r--r--src/screenshot.cpp2
1 files changed, 1 insertions, 1 deletions
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));