From ea26d9f0c20a65154e210cef3d3bc797be152d0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Thu, 15 May 2008 12:09:12 +0000 Subject: [PATCH] Honour 80 char/line limit. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25508 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/kernel/fs/KPath.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/system/kernel/fs/KPath.cpp b/src/system/kernel/fs/KPath.cpp index 2ad3cb5c53..7fea779131 100644 --- a/src/system/kernel/fs/KPath.cpp +++ b/src/system/kernel/fs/KPath.cpp @@ -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;