diff --git a/airspy_adsb.c b/airspy_adsb.c index 36df2f5..e636dbb 100644 --- a/airspy_adsb.c +++ b/airspy_adsb.c @@ -8,7 +8,7 @@ bool airspy_adsb_parse(struct buf *buf, struct packet *packet) { if (buf->length < 1 || *buf_at(buf, 0) != '*') { return false; } - if (buf->length >= 35 && *buf_at(buf, 34) == '\n') { + if (buf->length >= 35 && *buf_at(buf, 34) == '\n') { buf_consume(buf, 35); return true; }