- [#22492] [29159] commit breaks importing of script file that has a reload to self...
[blender.git] / source / blender / editors / space_sequencer / sequencer_add.c
index c1b30ab155a420b0428ccf43f845590b91d5df05..f36461ab7e0cf141fe0fd2e8f7d10d0c6a2337dc 100644 (file)
@@ -421,7 +421,7 @@ static int sequencer_add_image_strip_exec(bContext *C, wmOperator *op)
                RNA_END;
        }
        else {
-               BLI_split_dirfile(seq_load.path, NULL, se->name);
+               BLI_strncpy(se->name, BLI_path_basename(seq_load.path), sizeof(se->name));
                if(seq_load.start_frame < seq_load.end_frame) {
                        seq->endstill= seq_load.end_frame - seq_load.start_frame;
                }