diff options
Diffstat (limited to 'contrib/flex/buf.c')
-rw-r--r-- | contrib/flex/buf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/flex/buf.c b/contrib/flex/buf.c index fa713a69da98..d6efdacee7bf 100644 --- a/contrib/flex/buf.c +++ b/contrib/flex/buf.c @@ -95,7 +95,7 @@ struct Buf *buf_linedir (struct Buf *buf, const char* filename, int lineno) t = flex_alloc (strlen ("#line \"\"\n") + /* constant parts */ 2 * strlen (filename) + /* filename with possibly all backslashes escaped */ - (int) (1 + log10 (abs (lineno))) + /* line number */ + NUMCHARLINES + /* line number */ 1); /* NUL */ if (!t) flexfatal (_("Allocation of buffer for line directive failed")); |