Merge pull request #5411 from sum2012/patch-1

Fix MapFilePath by @unknownbrackets
This commit is contained in:
Henrik Rydgård 2014-02-11 14:35:26 +01:00
commit e9fa37b4de

View File

@ -230,7 +230,7 @@ bool MetaFileSystem::MapFilePath(const std::string &_inpath, std::string &outpat
size_t prefLen = fileSystems[i].prefix.size();
if (strncasecmp(fileSystems[i].prefix.c_str(), prefix.c_str(), prefLen) == 0)
{
outpath = realpath.substr(prefLen);
outpath = realpath.substr(prefixPos + 1);
*system = &(fileSystems[i]);
VERBOSE_LOG(FILESYS, "MapFilePath: mapped \"%s\" to prefix: \"%s\", path: \"%s\"", inpath.c_str(), fileSystems[i].prefix.c_str(), outpath.c_str());