Fix #19425: crash with long filename and rendering full sample.
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Mon, 21 Sep 2009 14:30:59 +0000 (14:30 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Mon, 21 Sep 2009 14:30:59 +0000 (14:30 +0000)
source/blender/render/intern/source/pipeline.c

index 8ef52991ca2f75955739c63deb27e7c992f312d3..68b6f9e524caee1d33d518d6d28c906137c843a5 100644 (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);