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:
authorCampbell Barton <ideasman42@gmail.com>2011-04-06 10:03:48 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-04-06 10:03:48 +0400
commita7507e945d1c314b9bf7f8298a8beea58e047d37 (patch)
treeae5ae0422e5eea00d1b2ae032ebcddaaf6058583 /source/blender/imbuf
parent5c7bed92d4a124a92c596f2dbe212cc59335925f (diff)
fix [#26803] Libs paths are case sensitive in windows
use case insensitive path comparison on windows: BLI_path_cmp
Diffstat (limited to 'source/blender/imbuf')
-rw-r--r--source/blender/imbuf/intern/thumbs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/imbuf/intern/thumbs.c b/source/blender/imbuf/intern/thumbs.c
index a9abcec9169..20276aede5c 100644
--- a/source/blender/imbuf/intern/thumbs.c
+++ b/source/blender/imbuf/intern/thumbs.c
@@ -281,7 +281,7 @@ ImBuf* IMB_thumb_create(const char* path, ThumbSize size, ThumbSource source, Im
BLI_snprintf(tpath, FILE_MAX, "%s%s", tdir, thumb);
thumb[8] = '\0'; /* shorten for tempname, not needed anymore */
BLI_snprintf(temp, FILE_MAX, "%sblender_%d_%s.png", tdir, abs(getpid()), thumb);
- if (strncmp(path, tdir, strlen(tdir)) == 0) {
+ if (BLI_path_ncmp(path, tdir, sizeof(tdir)) == 0) {
return NULL;
}
if (size == THB_FAIL) {
@@ -387,7 +387,7 @@ void IMB_thumb_delete(const char* path, ThumbSize size)
return;
}
if (thumbpath_from_uri(uri, thumb, sizeof(thumb), size)) {
- if (strncmp(path, thumb, strlen(thumb)) == 0) {
+ if (BLI_path_ncmp(path, thumb, sizeof(thumb)) == 0) {
return;
}
if (BLI_exists(thumb)) {
@@ -419,7 +419,7 @@ ImBuf* IMB_thumb_manage(const char* path, ThumbSize size, ThumbSource source)
}
if (thumbpath_from_uri(uri, thumb, sizeof(thumb), size)) {
- if (strncmp(path, thumb, strlen(thumb)) == 0) {
+ if (BLI_path_ncmp(path, thumb, sizeof(thumb)) == 0) {
img = IMB_loadiffname(path, IB_rect);
} else {
img = IMB_loadiffname(thumb, IB_rect | IB_metadata);