]> git.armaanb.net Git - opendoas.git/blobdiff - parse.y
s/authorization/authentication/g
[opendoas.git] / parse.y
diff --git a/parse.y b/parse.y
index 15c00c128ce11a1a9b9a5e693b358cc7b73393d6..c50378a5784c0001f2011a12eaa7cc9c101b6e25 100644 (file)
--- a/parse.y
+++ b/parse.y
@@ -16,6 +16,8 @@
  */
 
 %{
+#include "config.h"
+
 #include <sys/types.h>
 #include <ctype.h>
 #include <err.h>
@@ -276,6 +278,8 @@ repeat:
                        if (escape) {
                                nonkw = 1;
                                escape = 0;
+                               yylval.colno = 0;
+                               yylval.lineno++;
                                continue;
                        }
                        goto eow;
@@ -307,8 +311,10 @@ repeat:
                        }
                }
                *p++ = c;
-               if (p == ebuf)
+               if (p == ebuf) {
                        yyerror("too long line");
+                       p = buf;
+               }
                escape = 0;
        }