summaryrefslogtreecommitdiff
path: root/utils/8l/l.h
diff options
context:
space:
mode:
authorDavid Boddie <david@boddie.org.uk>2017-07-14 00:59:19 +0200
committerDavid Boddie <david@boddie.org.uk>2017-07-14 00:59:19 +0200
commite3bca5d865c831d3a6426b05bffd8c8d31e69886 (patch)
tree29f93d2c2d71c6bf6fff5ccc3ab2f0c89c5567fb /utils/8l/l.h
parent8823998c509302a526d8711095f664dd06997234 (diff)
Fixed warnings from recent versions of GCC.
Fixed incorrect buffering due to a change in the way the buf.dbuf array is compiled in at least GCC 4.9.2, GCC 5.4.0 and GCC 6.3.0.
Diffstat (limited to 'utils/8l/l.h')
-rw-r--r--utils/8l/l.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/8l/l.h b/utils/8l/l.h
index da151014..ca3059e9 100644
--- a/utils/8l/l.h
+++ b/utils/8l/l.h
@@ -195,7 +195,7 @@ EXTERN union
uchar obuf[MAXIO]; /* output buffer */
uchar ibuf[MAXIO]; /* input buffer */
} u;
- char dbuf[1];
+ char dbuf[MAXIO];
} buf;
#define cbuf u.obuf