summaryrefslogtreecommitdiff
path: root/monitor_nmea.c
diff options
context:
space:
mode:
Diffstat (limited to 'monitor_nmea.c')
-rw-r--r--monitor_nmea.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/monitor_nmea.c b/monitor_nmea.c
index 9deb7ebe..e69dce93 100644
--- a/monitor_nmea.c
+++ b/monitor_nmea.c
@@ -185,6 +185,7 @@ static void nmea_update(void)
int ymax, xmax;
timestamp_t now;
getmaxyx(nmeawin, ymax, xmax);
+ assert(ymax > 0);
if (strstr(sentences, fields[0]) == NULL) {
char *s_end = sentences + strlen(sentences);
if ((int)(strlen(sentences) + strlen(fields[0])) < xmax - 2) {