always run tests before committing, kiddo.
This commit is contained in:
parent
2329d55ff6
commit
03d9772807
2
minmea.c
2
minmea.c
@ -222,7 +222,7 @@ bool minmea_scan(const char *sentence, const char *format, ...)
|
|||||||
if (field[0] != '$')
|
if (field[0] != '$')
|
||||||
goto parse_error;
|
goto parse_error;
|
||||||
for (int f=0; f<5; f++)
|
for (int f=0; f<5; f++)
|
||||||
if (!minmea_isfield(field[f+i]))
|
if (!minmea_isfield(field[1+f]))
|
||||||
goto parse_error;
|
goto parse_error;
|
||||||
|
|
||||||
char *buf = va_arg(ap, char *);
|
char *buf = va_arg(ap, char *);
|
||||||
|
Loading…
Reference in New Issue
Block a user