dvb_sat_position_from_str - fix the parsing for positions without dot

This commit is contained in:
Jaroslav Kysela 2014-11-07 11:18:14 +01:00
parent abef913871
commit 966d3a898a

View file

@ -881,6 +881,7 @@ dvb_sat_position_from_str( const char *buf )
while (*s && *s != '.')
s++;
min = *s == '.' ? atoi(s + 1) : 0;
if (*s != '.') s = buf;
do {
c = *s++;
} while (c && c != 'W' && c != 'E');