]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
scanfile: omit zero prefixes in the satellite position
authorJaroslav Kysela <perex@perex.cz>
Mon, 26 May 2014 13:34:06 +0000 (15:34 +0200)
committerJaroslav Kysela <perex@perex.cz>
Mon, 26 May 2014 13:34:06 +0000 (15:34 +0200)
src/input/mpegts/scanfile.c

index 0b50b6a90a96679b4500e847ac646fc6a0363433..9d07547b67f5a657aba8aa83d65a573a857d7b53 100644 (file)
@@ -368,7 +368,7 @@ scanfile_load_file
   }
   *str = '\0';
   if (!strcmp(type, "dvb-s") && scanfile_network_dvbs_pos(buf, &opos)) {
-    snprintf(buf3, sizeof(buf3), "%c%03i.%i%c:%s", opos < 0 ? '<' : '>',
+    snprintf(buf3, sizeof(buf3), "%c%3i.%i%c:%s", opos < 0 ? '<' : '>',
                                                    abs(opos) / 10, abs(opos) % 10,
                                                    opos < 0 ? 'W' :'E', buf);
     strcpy(buf, buf3);