Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
DVR: Fixed the channel icon url, fixes #2322
  • Loading branch information
perexg committed Sep 21, 2014
1 parent a8d5bbc commit dff536a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dvr/dvr_db.c
Expand Up @@ -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;
Expand Down

0 comments on commit dff536a

Please sign in to comment.