diff options
author | Ian Bruene <ianbruene@gmail.com> | 2018-11-26 13:16:48 -0600 |
---|---|---|
committer | Ian Bruene <ianbruene@gmail.com> | 2018-11-26 13:16:48 -0600 |
commit | f258bb20c290e41fff4a74e08ad0e55304a3709a (patch) | |
tree | ae0ef4a046f3f9732422d186d1897cb706d4f5b8 /gpsmon.c | |
parent | 9e1b215838e3f8c0dc55d84d6d8fcdbfdf213b3b (diff) | |
download | gpsd-f258bb20c290e41fff4a74e08ad0e55304a3709a.tar.gz |
Removed variable length arrays, added -Wvla compiler option.vla-removal
Diffstat (limited to 'gpsmon.c')
-rw-r--r-- | gpsmon.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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'); |