merge from trunk r37405
[blender.git] / source / creator / creator.c
index 6e9ecf234fce2f53e9b97ea50df1d8d58ffddf3e..2a963db17461eb210aba7e92e2bd7cf09f73aef8 100644 (file)
@@ -538,7 +538,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");
                }