DVR: Fixed the channel icon url, fixes #2322

This commit is contained in:
Jaroslav Kysela 2014-09-21 15:28:13 +02:00
parent a8d5bbc067
commit dff536a840

View file

@ -1577,7 +1577,7 @@ dvr_entry_class_channel_icon_url_get(void *o)
snprintf(buf, sizeof(buf), "imagecache/%d", id);
} else {
strncpy(buf, ch->ch_icon ?: "", sizeof(buf));
buf[strlen(buf)-1] = '\0';
buf[sizeof(buf)-1] = '\0';
}
s = buf;
return &s;