Use unsafe character access to avoid a gcc 4 warning. We check the range

ourselves anyway.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31469 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2009-07-08 21:55:12 +00:00
parent 1001e99388
commit 4d12369dce

View File

@ -253,7 +253,7 @@ private:
// construct the located entry path
BString locatedEntryPath(locatedDirectoryPath);
int32 pathLength = locatedEntryPath.Length();
if (pathLength >= 1 && locatedEntryPath.ByteAt(pathLength - 1) != '/')
if (pathLength >= 1 && locatedEntryPath[pathLength - 1] != '/')
locatedEntryPath << '/';
locatedEntryPath << entry->Name();