diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-04-29 15:48:30 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-04-29 15:48:30 +0300 |
commit | 3b785be8f42c8e25639013391f33a587cbcc89ad (patch) | |
tree | 186d72da2fde6b40a97b3359184f5c17a1ab4ec9 /source | |
parent | 76282a986dc854b79c9e12412b6ccc8324b54d9e (diff) |
Cleanup: warning, use STRNCPY macro
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/makesrna/intern/rna_scene.c | 2 | ||||
-rw-r--r-- | source/blender/windowmanager/intern/wm_toolsystem.c | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/source/blender/makesrna/intern/rna_scene.c b/source/blender/makesrna/intern/rna_scene.c index 50b2ac69b58..204d95b4569 100644 --- a/source/blender/makesrna/intern/rna_scene.c +++ b/source/blender/makesrna/intern/rna_scene.c @@ -957,10 +957,12 @@ static void rna_RenderSettings_stereoViews_begin(CollectionPropertyIterator *ite rna_iterator_listbase_begin(iter, &rd->views, rna_RenderSettings_stereoViews_skip); } +#if 0 static char *rna_RenderSettings_path(PointerRNA *UNUSED(ptr)) { return BLI_sprintfN("render"); } +#endif static char *rna_BakeSettings_path(PointerRNA *UNUSED(ptr)) { diff --git a/source/blender/windowmanager/intern/wm_toolsystem.c b/source/blender/windowmanager/intern/wm_toolsystem.c index 7934d238cfb..06380d6eb8e 100644 --- a/source/blender/windowmanager/intern/wm_toolsystem.c +++ b/source/blender/windowmanager/intern/wm_toolsystem.c @@ -99,9 +99,9 @@ void WM_toolsystem_set(bContext *C, const bToolDef *tool) workspace->tool.spacetype = tool->spacetype; if (&workspace->tool != tool) { - BLI_strncpy(workspace->tool.keymap, tool->keymap, sizeof(tool->keymap)); - BLI_strncpy(workspace->tool.manipulator_group, tool->manipulator_group, sizeof(tool->manipulator_group)); - BLI_strncpy(workspace->tool.data_block, tool->data_block, sizeof(tool->data_block)); + STRNCPY(workspace->tool.keymap, tool->keymap); + STRNCPY(workspace->tool.manipulator_group, tool->manipulator_group); + STRNCPY(workspace->tool.data_block, tool->data_block); workspace->tool.spacetype = tool->spacetype; } |