diff options
author | Andrea Weikert <elubie@gmx.net> | 2009-07-12 17:06:52 +0400 |
---|---|---|
committer | Andrea Weikert <elubie@gmx.net> | 2009-07-12 17:06:52 +0400 |
commit | 5f8f2fc33a2f2fd363be16a36d14fa3b3f1ad78a (patch) | |
tree | 115e70af47ebb78ca0768a2b58dc3e9128484ba4 /source/blender/blenlib | |
parent | 78703a9ef8983ce513c1d428ba947dfbe1a58f97 (diff) |
2.5 filebrowser
* bugfix: parent on linux didn't account for first slash
* added some BLI_cleanup_dir to prevent weird directory names
* revert to old directory if user types bogus text.
Diffstat (limited to 'source/blender/blenlib')
-rw-r--r-- | source/blender/blenlib/intern/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenlib/intern/util.c b/source/blender/blenlib/intern/util.c index a236defc515..78a4599b3b3 100644 --- a/source/blender/blenlib/intern/util.c +++ b/source/blender/blenlib/intern/util.c @@ -502,7 +502,7 @@ int BLI_has_parent(char *path) BLI_add_slash(path); len = strlen(path)-1; - while (len) { + while (len>=0) { if ((path[len] == '\\') || (path[len] == '/')) slashes++; len--; |