From 1a1bfb3c7f2043d2b6027bbe49b7fba6c4c90e7e Mon Sep 17 00:00:00 2001 From: "[CST] Focus" Date: Fri, 20 Jan 2012 13:51:09 +0400 Subject: [PATCH] scansdt: fix debug descriptor len --- src/zapit/src/scansdt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/zapit/src/scansdt.cpp b/src/zapit/src/scansdt.cpp index 9af520eb3..86c391873 100644 --- a/src/zapit/src/scansdt.cpp +++ b/src/zapit/src/scansdt.cpp @@ -195,7 +195,7 @@ bool CSdt::Parse(t_transport_stream_id &tsid, t_original_network_id &onid) { #ifdef DEBUG_SDT printf("SDT: sid %x descriptor %02x: ", service->getServiceId(), d->getTag()); - uint8_t len = d->getLength(); + uint8_t len = 2+d->getLength(); uint8_t buf[len]; d->writeToBuffer(buf); for(uint8_t i = 0; i < len; i++)