Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2013-07-15 02:08:56 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-07-15 02:08:56 +0400
commit9c8516703d24aa5e3f67d563c8f5dfd54592dc1d (patch)
tree54c013ed6f92050acbaecc8ceab22a898bcfb288 /source/blender/editors/space_sequencer/sequencer_add.c
parent1c2ff55334c774cdcf0699387de6e450cef38e99 (diff)
replace strncpy with BLI_strncpy for cases we expect the string to be NULL terminated.
Diffstat (limited to 'source/blender/editors/space_sequencer/sequencer_add.c')
-rw-r--r--source/blender/editors/space_sequencer/sequencer_add.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_sequencer/sequencer_add.c b/source/blender/editors/space_sequencer/sequencer_add.c
index 65199ee9c3d..def907d5dc0 100644
--- a/source/blender/editors/space_sequencer/sequencer_add.c
+++ b/source/blender/editors/space_sequencer/sequencer_add.c
@@ -761,7 +761,7 @@ static int sequencer_add_image_strip_exec(bContext *C, wmOperator *op)
BKE_sequencer_sort(scene);
/* last active name */
- strncpy(ed->act_imagedir, strip->dir, FILE_MAXDIR - 1);
+ BLI_strncpy(ed->act_imagedir, strip->dir, sizeof(ed->act_imagedir));
if (RNA_boolean_get(op->ptr, "overlap") == FALSE) {
if (BKE_sequence_test_overlap(ed->seqbasep, seq))