svn merge -r37335:37500 https://svn.blender.org/svnroot/bf-blender/trunk/blender
[blender.git] / source / creator / creator.c
index 1b633cadc42e75fa81729c36a1708f19c86ab533..2252fe407f777f2cd7e02b68cceef43169b06597 100644 (file)
@@ -567,7 +567,7 @@ static int set_output(int argc, const char **argv, void *data)
        if (argc >= 1){
                if (CTX_data_scene(C)) {
                        Scene *scene= CTX_data_scene(C);
-                       BLI_strncpy(scene->r.pic, argv[1], FILE_MAXDIR);
+                       BLI_strncpy(scene->r.pic, argv[1], sizeof(scene->r.pic));
                } else {
                        printf("\nError: no blend loaded. cannot use '-o / --render-output'.\n");
                }