diff options
author | Brecht Van Lommel <brecht@blender.org> | 2022-03-23 18:11:50 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2022-03-23 18:12:55 +0300 |
commit | e25238e146f44fb6dc87d12fdd872aac4b7b95ff (patch) | |
tree | 74bcffc368c9bbf1ba3f441eb81bd242453912e5 /source | |
parent | d40d5e8d0f56cf5d2838b10007fb3e26b8cf72d4 (diff) |
Fix build error on GCC after recent changes
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/imbuf/intern/colormanagement.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/imbuf/intern/colormanagement.c b/source/blender/imbuf/intern/colormanagement.c index 3f8464d003e..2e8c5cc4a40 100644 --- a/source/blender/imbuf/intern/colormanagement.c +++ b/source/blender/imbuf/intern/colormanagement.c @@ -511,7 +511,9 @@ static void colormanage_load_config(OCIO_ConstConfigRcPtr *config) colorspace->aliases = MEM_callocN(sizeof(*colorspace->aliases) * colorspace->num_aliases, "ColorSpace aliases"); for (int i = 0; i < colorspace->num_aliases; i++) { - STRNCPY(colorspace->aliases[i], OCIO_colorSpaceGetAlias(ocio_colorspace, i)); + BLI_strncpy(colorspace->aliases[i], + OCIO_colorSpaceGetAlias(ocio_colorspace, i), + MAX_COLORSPACE_NAME); } } |