Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
dvb_support: don't use negative values for satpos
  • Loading branch information
perexg committed Nov 8, 2014
1 parent ab51ae2 commit 8060bbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/input/mpegts/dvb_support.c
Expand Up @@ -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;
}
Expand Down

0 comments on commit 8060bbd

Please sign in to comment.