]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
added separator before 'onscreen' style of episode number 196/head
authorJacek Tomasiak <jacek.tomasiak@gmail.com>
Sat, 29 Dec 2012 09:30:19 +0000 (10:30 +0100)
committerJacek Tomasiak <jacek.tomasiak@gmail.com>
Sat, 29 Dec 2012 22:46:19 +0000 (23:46 +0100)
src/epg.c

index eb6a6a889af10e82c8b861cb03afa6cb6c8ca796..fafb65ddb833f737918266eeac804e4c4323638d 100644 (file)
--- a/src/epg.c
+++ b/src/epg.c
@@ -1078,8 +1078,8 @@ size_t epg_episode_number_format
     if ( cfmt && num.e_cnt )
       i+= snprintf(&buf[i], len-i, cfmt, num.e_cnt);
   } else if ( num.text ) {
-    strncpy(buf, num.text, len);
-    i = strlen(buf);
+    if (pre) i += snprintf(&buf[i], len-i, "%s", pre);
+    i += snprintf(&buf[i], len-i, "%s", num.text);
   }
   return i;
 }