Yo Hal! On Sat, 01 Nov 2025 14:11:55 -0700 Hal Murray <[email protected]> wrote:
> > gpsd-3.26.2~dev/gpsmon/monitor_nmea0183.c: In function
> > \u2018nmea_update\u2019:
> > gpsd-3.26.2~dev/gpsmon/monitor_nmea0183.c:313:17: warning: array
> > subscript -1 is outside array bounds of \u2018char[132]\u2019
> > [-Warray-bounds] 313 | *--s_end = '.';
> > | ^~~~~~~~
> > gpsd-3.26.2~dev/gpsmon/monitor_nmea0183.c:32:13: note: while
> > referencing \u2018sentences\u2019
> > 32 | static char sentences[132];
> > | ^~~~~~~~~
> > [plus 2 more]
I converted that code to use indexes instead of (char*)s_end; Maybe
a tad slower than before, but more obviously correct.
Change pushed. I hope that helps.
RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
[email protected] Tel:+1 541 382 8588
Veritas liberabit vos. -- Quid est veritas?
"If you can't measure it, you can't improve it." - Lord Kelvin
pgpNUzfOTiS5b.pgp
Description: OpenPGP digital signature
