diff options
author | Campbell Barton <campbell@blender.org> | 2022-10-31 05:21:24 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-10-31 05:21:24 +0300 |
commit | 511ae2226473df57e47b439392da387cd355abef (patch) | |
tree | f736f082b3d3cb772cd56704abc701cc4947bc62 /source/blender/blenlib/intern | |
parent | 8f7ab1bf46d5e8610b167180b7631ff62e718a08 (diff) |
BLI_path: only operate on native path slashes for BLI_path_name_at_index
Prefer using the native path separator for low level path functions.
Diffstat (limited to 'source/blender/blenlib/intern')
-rw-r--r-- | source/blender/blenlib/intern/path_util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenlib/intern/path_util.c b/source/blender/blenlib/intern/path_util.c index 4e3d9be6186..b16cf8ea161 100644 --- a/source/blender/blenlib/intern/path_util.c +++ b/source/blender/blenlib/intern/path_util.c @@ -1563,7 +1563,7 @@ bool BLI_path_name_at_index(const char *__restrict path, int i = 0; while (true) { const char c = path[i]; - if (ELEM(c, SEP, ALTSEP, '\0')) { + if (ELEM(c, SEP, '\0')) { if (prev + 1 != i) { prev += 1; if (index_step == index) { @@ -1590,7 +1590,7 @@ bool BLI_path_name_at_index(const char *__restrict path, int i = prev - 1; while (true) { const char c = i >= 0 ? path[i] : '\0'; - if (ELEM(c, SEP, ALTSEP, '\0')) { + if (ELEM(c, SEP, '\0')) { if (prev - 1 != i) { i += 1; if (index_step == index) { |