diff options
author | Bjørn Mork <bjorn@mork.no> | 2019-05-25 16:38:36 +0200 |
---|---|---|
committer | Bjørn Mork <bjorn@mork.no> | 2019-05-25 16:38:36 +0200 |
commit | 2607bb4d3fc6e2ec0d9d187fcb06e8b5b6c269c1 (patch) | |
tree | 4b2a35b766a04cf03a0becd2970aa96ab9ff405c | |
parent | 0d93da61418d95e0709b64a385a6a967dc044123 (diff) |
fix typo in parser
Signed-off-by: Bjørn Mork <bjorn@mork.no>
-rw-r--r-- | obinsectd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/obinsectd.c b/obinsectd.c index 788e8ff..5d9d760 100644 --- a/obinsectd.c +++ b/obinsectd.c @@ -670,7 +670,7 @@ static bool parse_payload(unsigned char *buf, size_t buflen, json_object *json) p++; /* don't bother decoding the individual bits of long-invoke-id-and-priority */ - invokeid = p[0] << 24 | buf[1] << 16 | buf[2] << 8 | buf[3]; + invokeid = p[0] << 24 | p[1] << 16 | p[2] << 8 | p[3]; p += 4; /* some buggy firmwares includes a 0x09 type byte before the date-time - skip it */ |