diff options
Diffstat (limited to 'scripts/kconfig/zconf.l')
-rw-r--r-- | scripts/kconfig/zconf.l | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/kconfig/zconf.l b/scripts/kconfig/zconf.l index cfa46077c..d839577ca 100644 --- a/scripts/kconfig/zconf.l +++ b/scripts/kconfig/zconf.l | |||
@@ -49,6 +49,10 @@ void new_string(void) | |||
49 | void append_string(const char *str, int size) | 49 | void append_string(const char *str, int size) |
50 | { | 50 | { |
51 | int new_size = text_size + size + 1; | 51 | int new_size = text_size + size + 1; |
52 | if (size > 70) { | ||
53 | fprintf (stderr, "%s:%d error: Overlong line\n", | ||
54 | current_file->name, current_file->lineno); | ||
55 | } | ||
52 | if (new_size > text_asize) { | 56 | if (new_size > text_asize) { |
53 | new_size += START_STRSIZE - 1; | 57 | new_size += START_STRSIZE - 1; |
54 | new_size &= -START_STRSIZE; | 58 | new_size &= -START_STRSIZE; |