summaryrefslogtreecommitdiff
path: root/gpsmon.c
diff options
context:
space:
mode:
authorIan Bruene <ianbruene@gmail.com>2018-11-26 13:16:48 -0600
committerIan Bruene <ianbruene@gmail.com>2018-11-26 13:16:48 -0600
commitf258bb20c290e41fff4a74e08ad0e55304a3709a (patch)
treeae0ef4a046f3f9732422d186d1897cb706d4f5b8 /gpsmon.c
parent9e1b215838e3f8c0dc55d84d6d8fcdbfdf213b3b (diff)
downloadgpsd-f258bb20c290e41fff4a74e08ad0e55304a3709a.tar.gz
Removed variable length arrays, added -Wvla compiler option.vla-removal
Diffstat (limited to 'gpsmon.c')
-rw-r--r--gpsmon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gpsmon.c b/gpsmon.c
index ae456209..ed1e33b6 100644
--- a/gpsmon.c
+++ b/gpsmon.c
@@ -314,7 +314,7 @@ void monitor_fixframe(WINDOW * win)
static void packet_dump(const char *buf, size_t buflen)
{
if (packetwin != NULL) {
- char buf2[buflen * 2];
+ char buf2[MAX_PACKET_LENGTH * 2];
cond_hexdump(buf2, buflen * 2, buf, buflen);
(void)waddstr(packetwin, buf2);
(void)waddch(packetwin, (chtype)'\n');