From d46c06d7702cdc05ee1039a65e3ff8404b4ee499 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Mon, 26 May 2014 15:34:06 +0200 Subject: [PATCH] scanfile: omit zero prefixes in the satellite position --- src/input/mpegts/scanfile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/input/mpegts/scanfile.c b/src/input/mpegts/scanfile.c index 0b50b6a9..9d07547b 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);