From: Jaroslav Kysela Date: Sun, 21 Sep 2014 13:28:13 +0000 (+0200) Subject: DVR: Fixed the channel icon url, fixes #2322 X-Git-Tag: v4.1~1291 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=dff536a84050831366b8e34c8d3aa3671441f050;p=thirdparty%2Ftvheadend.git DVR: Fixed the channel icon url, fixes #2322 --- diff --git a/src/dvr/dvr_db.c b/src/dvr/dvr_db.c index 98293ae63..d9b3aaa21 100644 --- a/src/dvr/dvr_db.c +++ b/src/dvr/dvr_db.c @@ -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;