aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--package/config/lex.zconf.c_shipped3
-rw-r--r--package/config/zconf.l3
2 files changed, 4 insertions, 2 deletions
diff --git a/package/config/lex.zconf.c_shipped b/package/config/lex.zconf.c_shipped
index aea5276e6..f1975f884 100644
--- a/package/config/lex.zconf.c_shipped
+++ b/package/config/lex.zconf.c_shipped
@@ -815,7 +815,8 @@ void new_string(void)
void append_string(const char *str, int size)
{
int new_size = text_size + size + 1;
- if (size > 70) {
+
+ if ((YY_START == 2 /* HELP */) && (size > 70)) {
fprintf (stderr, "%s:%d warning: Overlong line\n",
current_file->name, current_file->lineno);
}
diff --git a/package/config/zconf.l b/package/config/zconf.l
index 13b5f5d0e..4a0447b9e 100644
--- a/package/config/zconf.l
+++ b/package/config/zconf.l
@@ -49,7 +49,8 @@ void new_string(void)
void append_string(const char *str, int size)
{
int new_size = text_size + size + 1;
- if (size > 70) {
+
+ if ((YY_START == 2 /* HELP */) && (size > 70)) {
fprintf (stderr, "%s:%d warning: Overlong line\n",
current_file->name, current_file->lineno);
}