diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-12-03 02:12:44 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-12-03 02:12:44 +0400 |
commit | 1cee3e53fc9e5d056c3b5f37d3ec19105a0cfeed (patch) | |
tree | f3da30c78391559be371621fe1e955fc3c5a4255 /source/blender/editors/object | |
parent | a169a109e5636699fd11915d06257cf26105a105 (diff) |
Code Cleanup: use BLI_strncpy when copying into fixed sized buffers
Diffstat (limited to 'source/blender/editors/object')
-rw-r--r-- | source/blender/editors/object/object_add.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/object/object_add.c b/source/blender/editors/object/object_add.c index 798bf7c6318..7e55d082883 100644 --- a/source/blender/editors/object/object_add.c +++ b/source/blender/editors/object/object_add.c @@ -999,7 +999,7 @@ static int object_speaker_add_exec(bContext *C, wmOperator *op) BKE_nlatrack_add_strip(nlt, strip); /* auto-name the strip, and give the track an interesting name */ - strcpy(nlt->name, DATA_("SoundTrack")); + BLI_strncpy(nlt->name, DATA_("SoundTrack"), sizeof(nlt->name)); BKE_nlastrip_validate_name(adt, strip); WM_event_add_notifier(C, NC_ANIMATION | ND_NLA | NA_EDITED, NULL); |