Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source/blender/imbuf/intern/colormanagement.c4
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);
}
}