diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-08-04 22:12:49 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-08-04 22:12:49 +0400 |
commit | 78d69a1e1598f9967738c6d2f3195e2540d274d0 (patch) | |
tree | 0e5e84792b1d00293054920683135ad4da07deef /source/blender/imbuf/intern | |
parent | 41721e11fbf73812297b6945d0d6683eda400ba0 (diff) |
code cleanup: replace strcpy with BLI_strncpy for fixed size strings, and correct some harmless but incorrect sizeof() use
Diffstat (limited to 'source/blender/imbuf/intern')
-rw-r--r-- | source/blender/imbuf/intern/colormanagement.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/imbuf/intern/colormanagement.c b/source/blender/imbuf/intern/colormanagement.c index 238e68b141c..0167eaccef0 100644 --- a/source/blender/imbuf/intern/colormanagement.c +++ b/source/blender/imbuf/intern/colormanagement.c @@ -2787,9 +2787,9 @@ static void update_glsl_display_processor(const ColorManagedViewSettings *view_s check_glsl_display_processor_changed(view_settings, display_settings, from_colorspace)) { /* Store settings of processor for further comparison. */ - strcpy(global_glsl_state.view, view_settings->view_transform); - strcpy(global_glsl_state.display, display_settings->display_device); - strcpy(global_glsl_state.input, from_colorspace); + BLI_strncpy(global_glsl_state.view, view_settings->view_transform, MAX_COLORSPACE_NAME); + BLI_strncpy(global_glsl_state.display, display_settings->display_device, MAX_COLORSPACE_NAME); + BLI_strncpy(global_glsl_state.input, from_colorspace, MAX_COLORSPACE_NAME); global_glsl_state.exposure = view_settings->exposure; global_glsl_state.gamma = view_settings->gamma; |