Skip to content

Commit 8a8791b

Browse files
authored
Update dxcc prefix_add() to parse overrided lat/lon. (#504)
1 parent ac890ac commit 8a8791b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/dxcc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ void prefix_add(char *pfxstr) {
226226
if (loc != NULL) {
227227
new_prefix -> lat = atof(loc + 1);
228228
*loc = '\0';
229-
if ((loc = strchr(loc, '/')) != NULL)
229+
if ((loc = strchr(loc + 1, '/')) != NULL)
230230
new_prefix -> lon = atof(loc + 1);
231231
else
232232
new_prefix -> lon = INFINITY;

0 commit comments

Comments
 (0)