summaryrefslogtreecommitdiffstats
path: root/contrib/flex/buf.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/flex/buf.c')
-rw-r--r--contrib/flex/buf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/flex/buf.c b/contrib/flex/buf.c
index e5deb4e..fa713a6 100644
--- a/contrib/flex/buf.c
+++ b/contrib/flex/buf.c
@@ -90,7 +90,8 @@ struct Buf *buf_prints (struct Buf *buf, const char *fmt, const char *s)
*/
struct Buf *buf_linedir (struct Buf *buf, const char* filename, int lineno)
{
- char *dst, *src, *t;
+ char *dst, *t;
+ const char *src;
t = flex_alloc (strlen ("#line \"\"\n") + /* constant parts */
2 * strlen (filename) + /* filename with possibly all backslashes escaped */
OpenPOWER on IntegriCloud