Fix #19425: crash with long filename and rendering full sample.

This commit is contained in:
Brecht Van Lommel
2009-09-21 14:30:59 +00:00
parent e2ebb5d9e4
commit 6fc4e2d37f

View File

@@ -406,7 +406,7 @@ static int passtype_from_name(char *str)
static void render_unique_exr_name(Render *re, char *str, int sample)
{
char di[FILE_MAX], name[FILE_MAXFILE], fi[FILE_MAXFILE];
char di[FILE_MAX], name[FILE_MAXFILE+MAX_ID_NAME+100], fi[FILE_MAXFILE];
BLI_strncpy(di, G.sce, FILE_MAX);
BLI_splitdirstring(di, fi);