diff options
author | Boroondas Gupte <hg@boroon.dasgupta.ch> | 2011-04-26 22:22:33 +0200 |
---|---|---|
committer | Boroondas Gupte <hg@boroon.dasgupta.ch> | 2011-04-26 22:22:33 +0200 |
commit | c18e2f74b0f98bc772cb4cdcda17e598971b8b62 (patch) | |
tree | d2b019d22536a33ff9a112b007fd7b0f85d2ac09 /indra/llvfs/lldir_linux.cpp | |
parent | 95f41fbd9beda8089531bee5827a1eeba076ba6f (diff) |
STORM-1182 Use string::rfind instead of string::find
... so the last occurance of the build prefix in the executable path
will be matched. This should avoid cuttung too much subdirs away if
someone checks out the source to a path already containing
"/build-darwin-" or "/build-linux-".
Diffstat (limited to 'indra/llvfs/lldir_linux.cpp')
-rw-r--r-- | indra/llvfs/lldir_linux.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/llvfs/lldir_linux.cpp b/indra/llvfs/lldir_linux.cpp index ae25ab2f21..72b54f5380 100644 --- a/indra/llvfs/lldir_linux.cpp +++ b/indra/llvfs/lldir_linux.cpp @@ -93,7 +93,7 @@ LLDir_Linux::LLDir_Linux() #else mAppRODataDir = tmp_str; #endif - std::string::size_type build_dir_pos = mExecutableDir.find("/build-linux-"); + std::string::size_type build_dir_pos = mExecutableDir.rfind("/build-linux-"); if (build_dir_pos != std::string::npos) { // ...we're in a dev checkout |