summaryrefslogtreecommitdiffstats
path: root/uemis-downloader.c
diff options
context:
space:
mode:
Diffstat (limited to 'uemis-downloader.c')
-rw-r--r--uemis-downloader.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/uemis-downloader.c b/uemis-downloader.c
index 4a9f4272b..6a20a0af1 100644
--- a/uemis-downloader.c
+++ b/uemis-downloader.c
@@ -575,7 +575,7 @@ static void parse_divespot(char *buf)
latitude = g_ascii_strtod(val, NULL);
}
} while (tag && *tag);
- uemis_set_divelocation(divespot, strdup(locationstring), latitude, longitude);
+ uemis_set_divelocation(divespot, locationstring, latitude, longitude);
}
static void track_divespot(char *val, int diveid, char **location, degrees_t *latitude, degrees_t *longitude)
@@ -598,13 +598,13 @@ static void parse_tag(struct dive *dive, char *tag, char *val)
if (! strcmp(tag, "date"))
uemis_ts(val, &dive->when);
else if (!strcmp(tag, "duration"))
- uemis_duration(val, &dive->duration);
+ uemis_duration(val, &dive->dc.duration);
else if (!strcmp(tag, "depth"))
- uemis_depth(val, &dive->maxdepth);
+ uemis_depth(val, &dive->dc.maxdepth);
else if (!strcmp(tag, "file_content"))
uemis_parse_divelog_binary(val, dive);
else if (!strcmp(tag, "altitude"))
- uemis_get_index(val, &dive->surface_pressure.mbar);
+ uemis_get_index(val, &dive->dc.surface_pressure.mbar);
else if (!strcmp(tag, "f32Weight"))
uemis_get_weight(val, &dive->weightsystem[0], dive->dc.diveid);
else if (!strcmp(tag, "notes"))