From 03d977280711d44e791115a59ffff271f5f9df87 Mon Sep 17 00:00:00 2001 From: Kosma Moczek Date: Wed, 28 May 2014 15:41:42 +0200 Subject: [PATCH] always run tests before committing, kiddo. --- minmea.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/minmea.c b/minmea.c index 19957ed..a005c97 100644 --- a/minmea.c +++ b/minmea.c @@ -222,7 +222,7 @@ bool minmea_scan(const char *sentence, const char *format, ...) if (field[0] != '$') goto parse_error; for (int f=0; f<5; f++) - if (!minmea_isfield(field[f+i])) + if (!minmea_isfield(field[1+f])) goto parse_error; char *buf = va_arg(ap, char *);