epggrab: eit - coverity fix

This commit is contained in:
Jaroslav Kysela 2014-10-03 21:42:01 +02:00
parent a90285c03d
commit 6d594118d1

View file

@ -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 {