scanfile: omit zero prefixes in the satellite position
This commit is contained in:
parent
65a3c45ad4
commit
d46c06d770
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue