diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-10-11 02:08:14 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-10-11 02:09:04 +0300 |
commit | 4728eed70c794d48b36cca2047a0cd510f1c9d45 (patch) | |
tree | e5eea6f5b1694b20d70a51f1be9adea32721372d /source/blender | |
parent | 926b9ae80aac11d4d451ce40b38b858dab7f4452 (diff) |
UI: increase size of copy buffer
The length was 400 which isn't enough for some file paths.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/interface/interface_handlers.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/interface/interface_handlers.c b/source/blender/editors/interface/interface_handlers.c index a3d6c4d8cf8..b883984a702 100644 --- a/source/blender/editors/interface/interface_handlers.c +++ b/source/blender/editors/interface/interface_handlers.c @@ -2309,7 +2309,8 @@ static void ui_but_copy(bContext *C, uiBut *but, const bool copy_array) return; } - char buf[UI_MAX_DRAW_STR] = {0}; + /* Arbitrary large value (allow for paths: 'PATH_MAX') */ + char buf[4096] = {0}; const int buf_max_len = sizeof(buf); /* Left false for copying internal data (color-band for eg). */ |