Honour 80 char/line limit.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25508 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -253,7 +253,8 @@ KPath::Append(const char *component, bool isComponent)
|
|||||||
// compute the result path len
|
// compute the result path len
|
||||||
bool insertSlash = isComponent && fBuffer[fPathLength - 1] != '/'
|
bool insertSlash = isComponent && fBuffer[fPathLength - 1] != '/'
|
||||||
&& component[0] != '/';
|
&& component[0] != '/';
|
||||||
size_t resultPathLength = fPathLength + componentLength + (insertSlash ? 1 : 0);
|
size_t resultPathLength = fPathLength + componentLength
|
||||||
|
+ (insertSlash ? 1 : 0);
|
||||||
if (resultPathLength >= fBufferSize)
|
if (resultPathLength >= fBufferSize)
|
||||||
return B_BUFFER_OVERFLOW;
|
return B_BUFFER_OVERFLOW;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user