]> 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:39:39 +0000 (19:39 +0100)
src/htsp_server.c

index b146b8140c6b3249d37c5a2b0a568381f5e20a54..cd8a9735e27e9fcd65520c02ef5d9e1e6831c642 100644 (file)
@@ -821,6 +821,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();
@@ -854,7 +855,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;