diff options
author | smatz <smatz@openttd.org> | 2009-11-01 18:17:01 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2009-11-01 18:17:01 +0000 |
commit | 492a32d31c20ecd95f381c6728b948596f15f4b3 (patch) | |
tree | c404ae57ce364da0d334e62be61cc22b1d194ba5 /src | |
parent | 090c762921d7452b7f7730016d6a1d385fcfc953 (diff) | |
download | openttd-492a32d31c20ecd95f381c6728b948596f15f4b3.tar.xz |
(svn r17939) -Fix (r17938): debug code sneaked in
Diffstat (limited to 'src')
-rw-r--r-- | src/screenshot.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/screenshot.cpp b/src/screenshot.cpp index 77d5f4e03..283bd882f 100644 --- a/src/screenshot.cpp +++ b/src/screenshot.cpp @@ -551,7 +551,7 @@ static char *MakeScreenshotName(const char *ext) size_t len = strlen(_screenshot_name); snprintf(&_screenshot_name[len], lengthof(_screenshot_name) - len, ".%s", ext); - static char filename[20 + 1]; // 1 character more to detect overflow + static char filename[MAX_PATH]; for (uint serial = 1;; serial++) { if (snprintf(filename, lengthof(filename), "%s%s", _personal_dir, _screenshot_name) >= (int)lengthof(filename)) { /* We need more characters than MAX_PATH -> end with error */ |