From: Jaroslav Kysela Date: Mon, 26 May 2014 13:34:06 +0000 (+0200) Subject: scanfile: omit zero prefixes in the satellite position X-Git-Tag: v4.1~2048 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d46c06d7702cdc05ee1039a65e3ff8404b4ee499;p=thirdparty%2Ftvheadend.git scanfile: omit zero prefixes in the satellite position --- diff --git a/src/input/mpegts/scanfile.c b/src/input/mpegts/scanfile.c index 0b50b6a90..9d07547b6 100644 --- a/src/input/mpegts/scanfile.c +++ b/src/input/mpegts/scanfile.c @@ -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);