diff options
| author | Tom Smeding <tom@tomsmeding.com> | 2026-08-06 21:48:33 +0200 |
|---|---|---|
| committer | Tom Smeding <tom@tomsmeding.com> | 2026-08-06 22:34:00 +0200 |
| commit | 4b8960ce83d29a63c71ea39b4376d5d9b78b5cdf (patch) | |
| tree | 04777cc7fa0e32b93711b30b02929b39e60f49dc /cbits | |
| parent | 6412601c368d88aa0e8611ecdeea474946cd6d37 (diff) | |
Diffstat (limited to 'cbits')
| -rw-r--r-- | cbits/znc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cbits/znc.c b/cbits/znc.c index 3647395..5ed6d41 100644 --- a/cbits/znc.c +++ b/cbits/znc.c @@ -347,7 +347,7 @@ size_t tirclogv_count_lines(const char *buf, size_t len) { size_t numln = 0; if (len == 0) return 0; - if (buf[len - 1] == '\n') len--; // we actually count the number of '\n' below + if (buf[len - 1] != '\n') len++; // we actually count the number of '\n' below const int vecwidth = 16; const int unrollcount = 2; |
