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;