diff --git a/src/epggrab/module/eit.c b/src/epggrab/module/eit.c index 811af0e7..7026e9fe 100644 --- a/src/epggrab/module/eit.c +++ b/src/epggrab/module/eit.c @@ -367,6 +367,7 @@ static int _eit_desc_crid if (crid) { if (strstr(buf, "crid://") == buf) { strncpy(crid, buf, clen); + crid[clen-1] = '\0'; } else if ( *buf != '/' ) { snprintf(crid, clen, "crid://%s", buf); } else {