]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
htsp server: don't use static char array for channelIcon
authorJaroslav Kysela <perex@perex.cz>
Wed, 15 Nov 2017 18:38:53 +0000 (19:38 +0100)
committerJaroslav Kysela <perex@perex.cz>
Wed, 15 Nov 2017 18:40:13 +0000 (19:40 +0100)
src/htsp_server.c

index 0d84a3c318f696b352b38b16f439b6658b73557f..76a64e3dfc143aee9bcbc3656e05949bad6eefbf 100644 (file)
@@ -816,6 +816,7 @@ htsp_build_channel(channel_t *ch, const char *method, htsp_connection_t *htsp)
   epg_broadcast_t *now, *next = NULL;
   int64_t chnum = channel_get_number(ch);
   const char *icon;
+  char buf[64];
 
   htsmsg_t *out = htsmsg_create_map();
   htsmsg_t *tags = htsmsg_create_list();
@@ -849,7 +850,6 @@ htsp_build_channel(channel_t *ch, const char *method, htsp_connection_t *htsp)
     } else {
       if (htsp->htsp_version < 15) {
         /* older clients expects '/imagecache/' */
-        static char buf[64];
         if (strncmp(icon, "imagecache/", 11) == 0) {
           snprintf(buf, sizeof(buf), "/%s", icon);
           icon = buf;