diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2015-01-11 00:54:32 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2015-01-11 00:54:32 +0300 |
commit | cd2d84d91c5b6a11c72b0a5aaa7db914dbe9bdcd (patch) | |
tree | dece6866de4e8e1d976cec5fa6d9ed352f23a236 /source/blender/editors/space_outliner | |
parent | 5357474ad8b81ce0e41907d99e9636fcc7c3a6f6 (diff) |
Fix three issues reported by coverity in own recent code. Including two potential crashers.
Diffstat (limited to 'source/blender/editors/space_outliner')
-rw-r--r-- | source/blender/editors/space_outliner/outliner_tree.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/space_outliner/outliner_tree.c b/source/blender/editors/space_outliner/outliner_tree.c index c6a6b8f9697..4aa36da594b 100644 --- a/source/blender/editors/space_outliner/outliner_tree.c +++ b/source/blender/editors/space_outliner/outliner_tree.c @@ -1398,9 +1398,9 @@ static int outliner_filter_tree(SpaceOops *soops, ListBase *lb) search_string = soops->search_string; } else { - search_string = search_buff; /* Implicitly add heading/trailing wildcards if needed. */ - BLI_strncpy_ensure_pad(search_string, soops->search_string, '*', sizeof(search_string)); + BLI_strncpy_ensure_pad(search_buff, soops->search_string, '*', sizeof(search_buff)); + search_string = search_buff; } for (te = lb->first; te; te = ten) { |