replace fixed sizes with sizeof when passing string length since size wasn't always...
[blender.git] / source / blender / editors / render / render_preview.c
index 86328ca2a6406d54ba7225da3b0e533fd10701b4..3e34a55a3d93791a8878917b12d6d68611ea0d99 100644 (file)
@@ -104,7 +104,7 @@ ImBuf* get_brush_icon(Brush *brush)
 {
        static const int flags = IB_rect|IB_multilayer|IB_metadata;
 
-       char path[240];
+       char path[FILE_MAX];
        char *folder;
 
        if (!(brush->icon_imbuf)) {