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:
parent
1001e99388
commit
4d12369dce
@ -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();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user