diff --git a/src/impl/sink_to_file.cpp b/src/impl/sink_to_file.cpp index 228b832..108e2cf 100644 --- a/src/impl/sink_to_file.cpp +++ b/src/impl/sink_to_file.cpp @@ -107,7 +107,7 @@ namespace soralog { // NOLINTNEXTLINE(cppcoreguidelines-pro-bounds-pointer-arithmetic) *ptr++ = c; // NOLINTNEXTLINE(cppcoreguidelines-pro-bounds-pointer-arithmetic) - -width; + --width; } while (width--) { // Pad remaining space with spaces // NOLINTNEXTLINE(cppcoreguidelines-pro-bounds-pointer-arithmetic)