summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2020-09-05 05:48:45 -0400
committerEric S. Raymond <esr@thyrsus.com>2020-09-22 18:44:26 -0400
commitd5574c7387573404129ea48be830094b8a67cc2c (patch)
tree34a2887c246942e67ac3b03f3d2b14f4fc0dd17e
parentfeeba9873f80dafbe96ff35787ac77ca7f2223cf (diff)
downloadflex-git-d5574c7387573404129ea48be830094b8a67cc2c.tar.gz
Banish gcc warnings so errors won't get lost in the clutter.
-rw-r--r--src/filter.c2
-rw-r--r--src/misc.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/filter.c b/src/filter.c
index a7e69ec..9a5e777 100644
--- a/src/filter.c
+++ b/src/filter.c
@@ -337,7 +337,7 @@ static bool is_blank_line (const char *str)
*/
int filter_fix_linedirs (struct filter *chain)
{
- char buf[512];
+ char buf[4096];
const size_t readsz = sizeof buf;
int lineno = 1;
bool in_gen = true; /* in generated code */
diff --git a/src/misc.c b/src/misc.c
index 426b1c7..6ee1e5a 100644
--- a/src/misc.c
+++ b/src/misc.c
@@ -341,7 +341,7 @@ void lerr_fatal (const char *msg, ...)
void line_directive_out (FILE *output_file, int do_infile)
{
- char directive[MAXLINE], filename[MAXLINE];
+ char directive[MAXLINE*2], filename[MAXLINE];
char *s1, *s2, *s3;
if (!gen_line_dirs)