Fix MapFilePath by @unknownbrackets

Fix #5377
This commit is contained in:
sum2012
2014-02-11 21:26:44 +08:00
parent c8ebd81780
commit b348c05467
+1 -1
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());