diff options
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; |
