Commit de599833 authored by David Matthews's avatar David Matthews Committed by Jean-Paul Saman

Fix length of content identifier. Parsed CRID values were one byte short.

(cherry picked from commit 092dd6020526ebf14dea4dfc80ef2c2513096c65)
Signed-off-by: default avatarJean-Paul Saman <jpsaman@videolan.org>
parent f186f4b9
...@@ -88,8 +88,7 @@ dvbpsi_dvb_content_id_dr_t *dvbpsi_decode_dvb_content_id_dr(dvbpsi_descriptor_t ...@@ -88,8 +88,7 @@ dvbpsi_dvb_content_id_dr_t *dvbpsi_decode_dvb_content_id_dr(dvbpsi_descriptor_t
} }
byte += len; byte += len;
/* Properly terminate the string */ /* Properly terminate the string */
unsigned int last = (i < len) ? i : len - 1U; entry->value.path[len] = 0;
entry->value.path[last] = 0;
} }
else if (entry->i_location == CRID_LOCATION_CIT) else if (entry->i_location == CRID_LOCATION_CIT)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment