dvb_support: don't use negative values for satpos
This commit is contained in:
parent
ab51ae2f80
commit
8060bbd551
1 changed files with 1 additions and 1 deletions
|
@ -863,7 +863,7 @@ dvb_sat_position_to_str(int position, char *buf, size_t buflen)
|
|||
return "";
|
||||
snprintf(buf, buflen, "%d", position / 10);
|
||||
if (dec)
|
||||
snprintf(buf + strlen(buf), buflen - strlen(buf), ".%d", dec);
|
||||
snprintf(buf + strlen(buf), buflen - strlen(buf), ".%d", abs(dec));
|
||||
snprintf(buf + strlen(buf), buflen - strlen(buf), "%c", dec < 0 ? 'W' : 'E');
|
||||
return buf;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue