diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-05-27 13:54:21 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-05-27 13:54:21 +0300 |
commit | 47f2b3b80d748ccfe1192dbd7c3176be88814da1 (patch) | |
tree | 46d16d5081bd1e9faf8aab27815b89cf4026da4a /source/blender/editors/interface/interface_layout.c | |
parent | 4ca4e64d25f69eb4cbb96084fb688b69484e1507 (diff) | |
parent | 56254a42e0aa42a39e1f3f7b3d13905168c3f39c (diff) |
Merge branch 'master' into blender2.8
Diffstat (limited to 'source/blender/editors/interface/interface_layout.c')
-rw-r--r-- | source/blender/editors/interface/interface_layout.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/interface/interface_layout.c b/source/blender/editors/interface/interface_layout.c index ad8dd3644ae..0aa42399ff3 100644 --- a/source/blender/editors/interface/interface_layout.c +++ b/source/blender/editors/interface/interface_layout.c @@ -181,7 +181,7 @@ static const char *ui_item_name_add_colon(const char *name, char namestr[UI_MAX_ int len = strlen(name); if (len != 0 && len + 1 < UI_MAX_NAME_STR) { - BLI_strncpy(namestr, name, UI_MAX_NAME_STR); + memcpy(namestr, name, len); namestr[len] = ':'; namestr[len + 1] = '\0'; return namestr; |