Cleanup: warning, use STRNCPY macro

This commit is contained in:
Campbell Barton 2018-04-29 14:48:30 +02:00
parent 76282a986d
commit 3b785be8f4
2 changed files with 5 additions and 3 deletions

View File

@ -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))
{

View File

@ -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;
}