(svn r16024) -Codechange: harden string copying on places where it's possible

This commit is contained in:
rubidium
2009-04-10 20:37:05 +00:00
parent 4bf3508680
commit bee930f9b3
8 changed files with 16 additions and 16 deletions

View File

@@ -456,7 +456,7 @@ const char *GetScreenshotFormatDesc(int i)
void SetScreenshotFormat(int i)
{
_cur_screenshot_format = i;
strcpy(_screenshot_format_name, _screenshot_formats[i].extension);
strecpy(_screenshot_format_name, _screenshot_formats[i].extension, lastof(_screenshot_format_name));
}
/* screenshot generator that dumps the current video buffer */