Merging r40572 through r40597 from trunk into soc-2011-tomato
[blender-staging.git] / source / blender / blenkernel / intern / sequencer.c
index 3a33d6d4321f9dda80a0d019a416e9c612a426fb..94fbd499e1483136593ec9aa66a6ccd23697d44f 100644 (file)
@@ -3657,7 +3657,7 @@ Sequence *sequencer_add_sound_strip(bContext *C, ListBase *seqbasep, SeqLoadInfo
        calc_sequence_disp(scene, seq);
 
        /* last active name */
-       strncpy(ed->act_sounddir, strip->dir, FILE_MAXDIR-1);
+       BLI_strncpy(ed->act_sounddir, strip->dir, FILE_MAXDIR);
 
        seq_load_apply(scene, seq, seq_load);