X-Git-Url: https://git.street.me.uk/andy/viking.git/blobdiff_plain/6ef14d6bf6d58bff5319afe795952f164c9032db..dade5f874b05c2263bbbe668a77021d487b0761b:/src/datasource_osm_my_traces.c diff --git a/src/datasource_osm_my_traces.c b/src/datasource_osm_my_traces.c index abe947dc..4b5c4e7d 100644 --- a/src/datasource_osm_my_traces.c +++ b/src/datasource_osm_my_traces.c @@ -22,8 +22,6 @@ #ifdef HAVE_CONFIG_H #include "config.h" #endif -#include -#include #include #include @@ -35,8 +33,6 @@ #include "gpx.h" #include "acquire.h" #include "osm-traces.h" -#include "preferences.h" -#include "curl_download.h" #include "datasource_gps.h" #include "bbox.h" @@ -275,12 +271,12 @@ static void gpx_meta_data_start ( xml_data *xd, const char *el, const char **att xd->current_gpx_meta_data->name = g_strdup ( tmp ); if ( ( tmp = get_attr ( attr, "lat" ) ) ) { - g_snprintf (buf, sizeof (buf), tmp); + g_strlcpy ( buf, tmp, sizeof (buf) ); xd->current_gpx_meta_data->ll.lat = g_ascii_strtod ( buf, NULL ); } if ( ( tmp = get_attr ( attr, "lon" ) ) ) { - g_snprintf (buf, sizeof (buf), tmp); + g_strlcpy ( buf, tmp, sizeof (buf) ); xd->current_gpx_meta_data->ll.lon = g_ascii_strtod ( buf, NULL ); }