diff options
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 2bdee577c74..e267661ec21 100644 --- a/source/blender/editors/interface/interface_layout.c +++ b/source/blender/editors/interface/interface_layout.c @@ -180,7 +180,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; |