Commit 4e4f58dbaf0ca63c3e956d4592c9b39bbc620dd8

Thomas de Grivel 2024-07-22T13:58:16

fix newline counting

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/libkc3/buf.c b/libkc3/buf.c
index ead3d77..63a09db 100644
--- a/libkc3/buf.c
+++ b/libkc3/buf.c
@@ -162,8 +162,6 @@ sw buf_ignore_spaces (s_buf *buf)
     if ((r = buf_ignore(buf, csize)) < 0)
       return r;
     result += csize;
-    if (c == '\n')
-      buf->line++;
   }
   if (! result && r < 0)
     return r;