diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2013-06-25 18:48:30 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2013-06-25 18:48:30 +0400 |
commit | 40d4dfaba84fe0d5048cc847d5d249a35314b8ed (patch) | |
tree | 89346ba302d9d00b857b23b13b84e14cd8c6ba99 /source/blender/editors/space_text/text_ops.c | |
parent | 689ca4aef7228f910065d45e0648e802c17ab7c2 (diff) |
Fix #35824: finding missing files not working correct for filepaths with special
characters on Windows.
Replaced some uses of stat() by BLI_stat() to properly handle such filepaths.
Diffstat (limited to 'source/blender/editors/space_text/text_ops.c')
-rw-r--r-- | source/blender/editors/space_text/text_ops.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/editors/space_text/text_ops.c b/source/blender/editors/space_text/text_ops.c index ca6bab1d1da..dec61a0e1ca 100644 --- a/source/blender/editors/space_text/text_ops.c +++ b/source/blender/editors/space_text/text_ops.c @@ -486,7 +486,7 @@ static void txt_write_file(Text *text, ReportList *reports) fclose(fp); - if (stat(filepath, &st) == 0) { + if (BLI_stat(filepath, &st) == 0) { text->mtime = st.st_mtime; } else { @@ -3107,7 +3107,7 @@ int text_file_modified(Text *text) if (!BLI_exists(file)) return 2; - result = stat(file, &st); + result = BLI_stat(file, &st); if (result == -1) return -1; @@ -3134,7 +3134,7 @@ static void text_ignore_modified(Text *text) if (!BLI_exists(file)) return; - result = stat(file, &st); + result = BLI_stat(file, &st); if (result == -1 || (st.st_mode & S_IFMT) != S_IFREG) return; |