Index: src/poi.c =================================================================== --- src/poi.c (revision 3) +++ src/poi.c (revision 4) @@ -392,7 +392,7 @@ gdouble lat1, lon1, lat2, lon2; GtkListStore *store; gboolean selected = FALSE; - gchar tmp1[LL_FMT_LEN], tmp2[LL_FMT_LEN]; + gchar tmp1[LL_FMT_LEN], tmp2[LL_FMT_LEN], tmp3[LL_FMT_LEN + 4]; gint num_pois = 0; printf("%s()\n", __PRETTY_FUNCTION__); @@ -439,13 +439,14 @@ format_lat_lon(lat, lon, tmp1, tmp2); //lat_format(lat, tmp1); //lon_format(lon, tmp2); + snprintf(tmp3, sizeof(tmp3), "%s, %s", tmp1, tmp2); gtk_list_store_append(store, &iter); gtk_list_store_set(store, &iter, POI_POIID, poi_id, POI_CATID, sqlite3_column_int(_stmt_select_poi, 5), POI_LAT, lat, POI_LON, lon, - POI_LATLON, g_strdup_printf("%s, %s", tmp1, tmp2), + POI_LATLON, tmp3, POI_LABEL, sqlite3_column_text(_stmt_select_poi, 3), POI_DESC, sqlite3_column_text(_stmt_select_poi, 4), POI_CLABEL, sqlite3_column_text(_stmt_select_poi, 6),