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:
parent
da2a1fefe4
commit
ea26d9f0c2
@ -253,7 +253,8 @@ KPath::Append(const char *component, bool isComponent)
|
||||
// compute the result path len
|
||||
bool insertSlash = isComponent && fBuffer[fPathLength - 1] != '/'
|
||||
&& component[0] != '/';
|
||||
size_t resultPathLength = fPathLength + componentLength + (insertSlash ? 1 : 0);
|
||||
size_t resultPathLength = fPathLength + componentLength
|
||||
+ (insertSlash ? 1 : 0);
|
||||
if (resultPathLength >= fBufferSize)
|
||||
return B_BUFFER_OVERFLOW;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user