diff options
Diffstat (limited to 'source/blender/imbuf')
-rw-r--r-- | source/blender/imbuf/intern/colormanagement.c | 2 | ||||
-rw-r--r-- | source/blender/imbuf/intern/thumbs.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/imbuf/intern/colormanagement.c b/source/blender/imbuf/intern/colormanagement.c index 86c0dd69930..1d287025a4e 100644 --- a/source/blender/imbuf/intern/colormanagement.c +++ b/source/blender/imbuf/intern/colormanagement.c @@ -624,7 +624,7 @@ void colormanagement_init(void) OCIO_init(); - ocio_env = getenv("OCIO"); + ocio_env = BLI_getenv("OCIO"); if (ocio_env && ocio_env[0] != '\0') { config = OCIO_configCreateFromEnv(); diff --git a/source/blender/imbuf/intern/thumbs.c b/source/blender/imbuf/intern/thumbs.c index 674f9c0f166..fbc34264b30 100644 --- a/source/blender/imbuf/intern/thumbs.c +++ b/source/blender/imbuf/intern/thumbs.c @@ -99,10 +99,10 @@ static bool get_thumb_dir(char *dir, ThumbSize size) s += strlen(dir); #else #if defined(USE_FREEDESKTOP) - const char *home_cache = getenv("XDG_CACHE_HOME"); - const char *home = home_cache ? home_cache : getenv("HOME"); + const char *home_cache = BLI_getenv("XDG_CACHE_HOME"); + const char *home = home_cache ? home_cache : BLI_getenv("HOME"); #else - const char *home = getenv("HOME"); + const char *home = BLI_getenv("HOME"); #endif if (!home) return 0; s += BLI_strncpy_rlen(s, home, FILE_MAX); |