1
0
Fork 0

(svn r17939) -Fix (r17938): debug code sneaked in

release/1.0
smatz 2009-11-01 18:17:01 +00:00
parent 090c762921
commit 492a32d31c
1 changed files with 1 additions and 1 deletions

View File

@ -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 */