Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
dvb support: fix dvb_mux_conf_str_dvbs - satpos
  • Loading branch information
perexg committed Feb 17, 2015
1 parent f2cc2bc commit 6327ca6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/input/mpegts/dvb_support.c
Expand Up @@ -826,7 +826,7 @@ dvb_mux_conf_str_dvbs ( dvb_mux_conf_t *dmc, char *buf, size_t bufsize )
const char *pol = dvb_pol2str(dmc->u.dmc_fe_qpsk.polarisation);
const int satpos = dmc->u.dmc_fe_qpsk.orbital_pos;
char satbuf[16];
if (satpos) {
if (satpos != INT_MAX) {
snprintf(satbuf, sizeof(buf), "%d.%d%c ", abs(satpos) / 10, abs(satpos) % 10, satpos < 0 ? 'W' : 'E');
} else {
satbuf[0] = '\0';
Expand Down

0 comments on commit 6327ca6

Please sign in to comment.