Message ID | 1480699221-9267-1-git-send-email-sean@mess.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/utils/ir-ctl/ir-encode.c b/utils/ir-ctl/ir-encode.c index a0d2f4c..1bf0ac6 100644 --- a/utils/ir-ctl/ir-encode.c +++ b/utils/ir-ctl/ir-encode.c @@ -310,6 +310,7 @@ static int rc6_encode(enum rc_proto proto, unsigned scancode, unsigned *buf) buf[n++] = NS_TO_US(rc6_unit * 6); buf[n++] = NS_TO_US(rc6_unit * 2); + buf[n] = 0; switch (proto) { default:
We might end up with a corrupt rc6. Signed-off-by: Sean Young <sean@mess.org> --- utils/ir-ctl/ir-encode.c | 1 + 1 file changed, 1 insertion(+)