DVR: Fixed the channel icon url, fixes #2322
This commit is contained in:
parent
a8d5bbc067
commit
dff536a840
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue