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:
Stephan Aßmus 2008-05-15 12:09:12 +00:00
parent da2a1fefe4
commit ea26d9f0c2

View File

@ -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;