Cleanup: warning, use STRNCPY macro
This commit is contained in:
parent
76282a986d
commit
3b785be8f4
|
@ -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))
|
||||
{
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue