From 5f8f2fc33a2f2fd363be16a36d14fa3b3f1ad78a Mon Sep 17 00:00:00 2001 From: Andrea Weikert Date: Sun, 12 Jul 2009 13:06:52 +0000 Subject: 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. --- source/blender/blenlib/intern/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/blenlib') 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--; -- cgit v1.2.3