Fix buffer length in honeywell ()

This commit is contained in:
Peter Shipley 2021-01-04 22:53:24 -08:00 committed by GitHub
parent 079c3ca9d0
commit 077dc9ff91
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -81,7 +81,7 @@ static int honeywell_decode(r_device *decoder, bitbuffer_t *bitbuffer)
if (len > 50) { // DW11
if (decoder->verbose)
bitrow_printf(b, len, "%s: ", __func__);
bitrow_printf(b, (len > 80 ? 80 : len), "%s: ", __func__);
}
if (channel == 0x2 || channel == 0x4 || channel == 0xA) {