Cleanup: warning, use STRNCPY macro

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

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