From 543d6c0edfe64e54b285b61f1f3e805542710191 Mon Sep 17 00:00:00 2001 From: Heikki Hannikainen Date: Sun, 2 Mar 2008 16:11:16 +0000 Subject: [PATCH] Ignore base91 errors in compressed position packet's course/speed/altitude fields. git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@42 3ce903b1-3385-4e86-93cd-f9a4a239f7ac --- src/parse_aprs.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/parse_aprs.c b/src/parse_aprs.c index 8ebebec..581dc41 100644 --- a/src/parse_aprs.c +++ b/src/parse_aprs.c @@ -145,9 +145,11 @@ int parse_aprs_compressed(struct pbuf_t *pb, const char *body, const char *body_ for (i = 1; i <= 8; i++) if (body[i] < 0x21 || body[i] >= 0x7b) return 0; + /* we ignore course+speed and altitude, so let's ignore errors in there, too for (i = 10; i <= 12; i++) if (body[i] < 0x21 || body[i] >= 0x7b) return 0; + */ fprintf(stderr, "\tpassed length and format checks, sym %c%c\n", sym_table, sym_code);