#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
-#include <string.h>
-#include <limits.h>
#include <glib/gprintf.h>
#include <glib/gi18n.h>
#include "gpx.h"
#include "acquire.h"
#include "osm-traces.h"
-#include "preferences.h"
-#include "curl_download.h"
#include "datasource_gps.h"
#include "bbox.h"
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 );
}