always run tests before committing, kiddo.

This commit is contained in:
Kosma Moczek 2014-05-28 15:41:42 +02:00
parent 2329d55ff6
commit 03d9772807

View File

@ -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 *);